fix: stabilize flux and external secrets reconciliation
This commit is contained in:
6426
clusters/prod/flux-system/gotk-components.yaml
Normal file
6426
clusters/prod/flux-system/gotk-components.yaml
Normal file
File diff suppressed because it is too large
Load Diff
43
clusters/prod/flux-system/gotk-controller-cp1-patches.yaml
Normal file
43
clusters/prod/flux-system/gotk-controller-cp1-patches.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: source-controller
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: kustomize-controller
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: helm-controller
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: notification-controller
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
|
- gotk-components.yaml
|
||||||
- gitrepository-platform.yaml
|
- gitrepository-platform.yaml
|
||||||
- kustomization-infrastructure.yaml
|
- kustomization-infrastructure.yaml
|
||||||
- kustomization-apps.yaml
|
- kustomization-apps.yaml
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- gotk-controller-cp1-patches.yaml
|
||||||
|
|||||||
@@ -23,5 +23,14 @@ spec:
|
|||||||
retries: 3
|
retries: 3
|
||||||
values:
|
values:
|
||||||
installCRDs: true
|
installCRDs: true
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
|
webhook:
|
||||||
|
failurePolicy: Ignore
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
|
certController:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: k8s-cluster-cp-1
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ resources:
|
|||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- helmrepository-external-secrets.yaml
|
- helmrepository-external-secrets.yaml
|
||||||
- helmrelease-external-secrets.yaml
|
- helmrelease-external-secrets.yaml
|
||||||
- clustersecretstore-doppler-hetznerterra.yaml
|
|
||||||
|
|||||||
16
infrastructure/kustomization-secrets.yaml
Normal file
16
infrastructure/kustomization-secrets.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: secrets
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: platform
|
||||||
|
path: ./infrastructure/secrets
|
||||||
|
dependsOn:
|
||||||
|
- name: addon-external-secrets
|
||||||
|
wait: true
|
||||||
|
timeout: 5m
|
||||||
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- addons
|
- addons
|
||||||
|
- kustomization-secrets.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user