feat: reorganize cert-manager to avoid crds race condition

This commit is contained in:
SeanOMik 2024-09-07 00:20:27 -04:00
parent 8e646d7b78
commit 2abf740c55
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
11 changed files with 67 additions and 6 deletions

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helm-repository.yaml
- ./helm-release.yaml

View File

@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager
namespace: flux-system
spec:
timeout: 5m
interval: 10m
path: ./kubernetes/common/apps/cert-manager/app/files
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
decryption:
provider: sops
secretRef:
name: sops-gpg
postBuild:
substitute: {}
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./cloudflare-cred.sops.yaml
- ./letsencrypt-prod.yaml
- ./letsencrypt-stage.yaml
- ./wildcard-cert.yaml

View File

@ -0,0 +1,28 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager-certificates
namespace: flux-system
spec:
timeout: 5m
interval: 10m
path: ./kubernetes/common/apps/cert-manager/certs/files
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
decryption:
provider: sops
secretRef:
name: sops-gpg
dependsOn:
- name: cert-manager
namespace: flux-system
postBuild:
substitute: {}
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets

View File

@ -2,9 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./namespace.yaml - ./namespace.yaml
- ./cloudflare-cred.sops.yaml - ./app/ks.yaml
- ./helm-repository.yaml - ./certs/ks.yaml
- ./helm-release.yaml
- ./letsencrypt-prod.yaml
- ./letsencrypt-stage.yaml
- ./wildcard-cert.yaml