mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: external-snapshotter
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://github.com/kubernetes-csi/external-snapshotter.git
|
|
targetRevision: v8.7.0
|
|
path: deploy/kubernetes/snapshot-controller
|
|
kustomize:
|
|
patches:
|
|
# Ride out dqlite stalls of up to ~40s instead of restarting when a
|
|
# lease renewal takes over 10s (docs/upgrade-k8s-1.33.md).
|
|
- target:
|
|
kind: Deployment
|
|
name: snapshot-controller
|
|
patch: |-
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --leader-election-lease-duration=60s
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --leader-election-renew-deadline=40s
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --leader-election-retry-period=5s
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: kube-system
|
|
syncPolicy:
|
|
# Was listed twice, with and without prune; Argo CD kept the last one.
|
|
automated:
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|