add stakater reloader to argo1

This commit is contained in:
James Andariese 2023-07-20 22:28:29 -05:00
parent 495c7952ed
commit bafc474a64
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# {{ if (index .Values "stakater-reloader").enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Release.Name }}-stakater-reloader
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: "{{ .Values.bootstrap.source.repoURL }}"
targetRevision: "{{ .Values.bootstrap.source.targetRevision }}"
path: {{ (index .Values "stakater-reloader").path | default "stakater-reloader" | quote }}
destination:
server: "https://kubernetes.default.svc"
namespace: {{ (index .Values "stakater-reloader").namespace | default "stakater-reloader" | quote }}
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
retry:
limit: 10
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
# {{- end }}

View File

@ -166,4 +166,5 @@ pgo: {enabled: true}
secrets: {enabled: true} secrets: {enabled: true}
sealed-secrets: {enabled: true} sealed-secrets: {enabled: true}
template-operator: {enabled: true} template-operator: {enabled: true}
stakater-reloader: {enabled: true}
trust-manager: {enabled: true} trust-manager: {enabled: true}

View File

@ -0,0 +1,3 @@
allows restarts to happen for pods which only read their configs (configmaps) at start.
for example, this causes keycloak to restart when its admin password rotates.

View File

@ -0,0 +1,9 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: stakater-reloader
resources:
- ./ns.yaml
- https://github.com/stakater/Reloader/deployments/kubernetes?ref=v1.0.30

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: synapse