add stakater reloader to argo1
This commit is contained in:
parent
495c7952ed
commit
bafc474a64
31
argo1/templates/stakater-reloader.yaml
Normal file
31
argo1/templates/stakater-reloader.yaml
Normal 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 }}
|
|
@ -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}
|
||||||
|
|
3
stakater-reloader/README.md
Normal file
3
stakater-reloader/README.md
Normal 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.
|
9
stakater-reloader/kustomization.yaml
Normal file
9
stakater-reloader/kustomization.yaml
Normal 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
|
4
stakater-reloader/ns.yaml
Normal file
4
stakater-reloader/ns.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: synapse
|
Loading…
Reference in New Issue
Block a user