1
0
Fork 0

refactor: move cert-manager and clusterissuer 'letsencrypt-prod' to universal (multi-cluster)

This commit is contained in:
Vojtěch Mareš 2023-10-02 19:41:33 +02:00
parent 84ef1d465e
commit 9044b58c82
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 79 additions and 55 deletions

View file

@ -0,0 +1,31 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: universal-clusterissuer
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
generators:
- list:
elements:
- cluster: cherry
url: https://kubernetes.default.svc
syncPolicy:
applicationsSync: create-update
preserveResourcesOnDeletion: true
template:
metadata:
name: "{{cluster}}-http-clusterissuer"
spec:
project: infrastructure
syncPolicy:
automated:
prune: true
selfHeal: true
source:
path: clusterissuer/
repoURL: https://github.com/vojtechmares/gitops.git
targetRevision: HEAD
destination:
server: "{{url}}"
namespace: default