Fix brusnika-prod flux path and add test-flux service
This commit is contained in:
parent
70f0d7f9bb
commit
9f80a3de58
6432
clusters/brusnika-prod/flux-system/gotk-components.yaml
Normal file
6432
clusters/brusnika-prod/flux-system/gotk-components.yaml
Normal file
File diff suppressed because it is too large
Load Diff
27
clusters/brusnika-prod/flux-system/gotk-sync.yaml
Normal file
27
clusters/brusnika-prod/flux-system/gotk-sync.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
# This manifest was generated by flux. DO NOT EDIT.
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: master
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: https://gitea.prod.brusnika.sarex.lonsdaleites.ru/sarex/iac.git
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
path: ./clusters/brusnika-prod
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
5
clusters/brusnika-prod/flux-system/kustomization.yaml
Normal file
5
clusters/brusnika-prod/flux-system/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
||||
43
clusters/brusnika-prod/test-flux-service.yaml
Normal file
43
clusters/brusnika-prod/test-flux-service.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: test-flux
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-flux-http
|
||||
namespace: test-flux
|
||||
labels:
|
||||
app: test-flux-http
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test-flux-http
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test-flux-http
|
||||
spec:
|
||||
containers:
|
||||
- name: http-echo
|
||||
image: hashicorp/http-echo:1.0.0
|
||||
args:
|
||||
- "-text=ok from test-flux"
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
name: http
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: test-flux-http
|
||||
namespace: test-flux
|
||||
spec:
|
||||
selector:
|
||||
app: test-flux-http
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 5678
|
||||
Loading…
Reference in New Issue
Block a user