mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 22:29:09 +01:00
No breaking changes for this setup: the chart renders the same resources and server flags, and chart 12 only dropped the Bitnami kubectl image from the CRD hook, which stays off because Argo CD applies the CRDs. The AWS plugin goes to v1.14.4, the line for Velero 1.18.
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: velero-helm
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
chart: velero
|
|
repoURL: https://vmware-tanzu.github.io/helm-charts
|
|
targetRevision: 12.2.1
|
|
helm:
|
|
values: |
|
|
# Velero builds its repository maintenance jobs from a Deployment
|
|
# named "velero". Under the default name (velero-helm) every
|
|
# maintenance run failed and the kopia repos on the NAS were never
|
|
# cleaned up.
|
|
fullnameOverride: velero
|
|
# No CRD upgrade hook: Argo CD applies the chart's crds/ directory on
|
|
# every sync. (Before chart 12 the hook also pulled
|
|
# docker.io/bitnami/kubectl, which Bitnami removed, and hung.)
|
|
upgradeCRDs: false
|
|
initContainers:
|
|
- name: velero-plugin-for-aws
|
|
image: velero/velero-plugin-for-aws:v1.14.4
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
configuration:
|
|
backupStorageLocation:
|
|
- name: default
|
|
bucket: velero-backups
|
|
provider: aws
|
|
config:
|
|
region: minio
|
|
s3ForcePathStyle: true
|
|
s3Url: http://192.168.1.99:9000
|
|
insecureSkipTLSVerify: "true"
|
|
volumeSnapshotLocation:
|
|
- name: default
|
|
provider: aws
|
|
config:
|
|
region: minio
|
|
features: EnableCSI
|
|
credentials:
|
|
# Use existing secret created by External Secrets Operator
|
|
# existingSecret: velero-minio-credentials
|
|
# extraEnvVars:
|
|
# AWS_SHARED_CREDENTIALS_FILE: /credentials/cloud
|
|
existingSecret: cloud-credentials
|
|
deployNodeAgent: true
|
|
nodeAgent:
|
|
containerSecurityContext:
|
|
privileged: true
|
|
# 512Mi got the server OOMKilled 314 times, including halfway
|
|
# through a backup of ~14.7k items.
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 2Gi
|
|
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: velero
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
automated:
|
|
selfHeal: true |