From 5c214a23daf4e6bfbf3be7b6d0ceacd7625ec3fe Mon Sep 17 00:00:00 2001 From: James Andariese Date: Sun, 23 Apr 2023 22:32:39 -0500 Subject: [PATCH] add haproxy-ingress application make haproxy-ingress a singleton --- argo1/templates/haproxy-ingress.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 argo1/templates/haproxy-ingress.yaml diff --git a/argo1/templates/haproxy-ingress.yaml b/argo1/templates/haproxy-ingress.yaml new file mode 100644 index 0000000..414363f --- /dev/null +++ b/argo1/templates/haproxy-ingress.yaml @@ -0,0 +1,33 @@ +# {{ if (index .Values "haproxy-ingress").enabled -}} +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: "haproxy-ingress" + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + chart: haproxy-ingress + repoURL: https://haproxy-ingress.github.io/charts + targetRevision: 0.14.2 + helm: + values: |-{{ (index .Values "haproxy-ingress").values | nindent 8 }} + destination: + server: "https://kubernetes.default.svc" + namespace: haproxy-ingress + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 10 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m0s +# {{- end }}