86 行
2.5 KiB
YAML
86 行
2.5 KiB
YAML
apiVersion: helm.cattle.io/v1
|
|
kind: HelmChart
|
|
metadata:
|
|
name: velero
|
|
namespace: infra-devops
|
|
spec:
|
|
repo: https://vmware-tanzu.github.io/helm-charts
|
|
chart: velero
|
|
targetNamespace: infra-devops
|
|
version: 11.3.2
|
|
valuesContent: |-
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: topology.kubernetes.io/region
|
|
operator: In
|
|
values:
|
|
- "cn-sh"
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
preference:
|
|
matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: In
|
|
values:
|
|
- homeb
|
|
# 此处暂时切换关闭upgradeCRDs操作 待官方修复后再开启
|
|
upgradeCRDs: false
|
|
deployNodeAgent: true
|
|
snapshotsEnabled: false
|
|
configuration:
|
|
backupSyncPeriod: 1h0m0s
|
|
defaultRepoMaintainFrequency: 3h0m0s
|
|
repositoryMaintenanceJob:
|
|
repositoryConfigData:
|
|
global:
|
|
keepLatestMaintenanceJobs: 1
|
|
backupStorageLocation:
|
|
- name: devcm-hw
|
|
default: true
|
|
provider: aws
|
|
bucket: devcm
|
|
prefix: velero
|
|
config:
|
|
region: cn-east-3
|
|
s3ForcePathStyle: false
|
|
s3Url: https://obs.cn-east-3.myhuaweicloud.com
|
|
checksumAlgorithm: ""
|
|
extraEnvVars:
|
|
- name: AWS_ACCESS_KEY_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: s3-devcm-hw
|
|
key: ACCESS_KEY_ID
|
|
- name: AWS_SECRET_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: s3-devcm-hw
|
|
key: ACCESS_SECRET_KEY
|
|
credentials:
|
|
useSecret: false
|
|
initContainers:
|
|
- name: velero-plugin-for-aws
|
|
image: velero/velero-plugin-for-aws:v1.13.0
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
nodeAgent:
|
|
# 控制面板不启用 lb节点不启用
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: NotIn
|
|
values:
|
|
- "true"
|
|
- key: svccontroller.k3s.cattle.io/enablelb
|
|
operator: NotIn
|
|
values:
|
|
- "true"
|
|
|