Skip to content

Commit

Permalink
Merge pull request #420 from jenting/velero-server-flags
Browse files Browse the repository at this point in the history
[velero] Add missing velero server flags
  • Loading branch information
reasonerjt committed Dec 19, 2022
2 parents 1f0831e + 2861878 commit f5e6c84
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 53 deletions.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.9.4
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 2.32.5
version: 2.32.6
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
71 changes: 47 additions & 24 deletions charts/velero/templates/deployment.yaml
Expand Up @@ -78,51 +78,74 @@ spec:
- /velero
args:
- server
### Flags
{{- with .Values.configuration }}
{{- with .backupSyncPeriod }}
- --backup-sync-period={{ . }}
{{- end }}
{{- with .resticTimeout }}
- --restic-timeout={{ . }}
{{- with .clientBurst }}
- --client-burst={{ . }}
{{- end }}
{{- if .restoreOnlyMode }}
- --restore-only
{{- with .clientPageSize }}
- --client-page-size={{ . }}
{{- end }}
{{- with .restoreResourcePriorities }}
- --restore-resource-priorities={{ . }}
{{- with .clientQPS }}
- --client-qps={{ . }}
{{- end }}
{{- with .features }}
- --features={{ . }}
{{- with .defaultBackupStorageLocation }}
- --default-backup-storage-location={{ . }}
{{- end }}
{{- with .logLevel }}
- --log-level={{ . }}
{{- with .defaultBackupTTL }}
- --default-backup-ttl={{ . }}
{{- end }}
{{- with .logFormat }}
- --log-format={{ . }}
{{- with .defaultResticPruneFrequency }}
- --default-restic-prune-frequency={{ . }}
{{- end }}
{{- with .defaultVolumeSnapshotLocations }}
- --default-volume-snapshot-locations={{ . }}
{{- end }}
{{- if .defaultVolumesToRestic }}
- --default-volumes-to-restic
{{- end }}
{{- with .defaultResticPruneFrequency }}
- --default-restic-prune-frequency={{ . }}
{{- with .disableControllers }}
- --disable-controllers={{ . }}
{{- end }}
{{- with .clientQPS }}
- --client-qps={{ . }}
{{- with .garbageCollectionFrequency }}
- --garbage-collection-frequency={{ . }}
{{- end }}
{{- with .clientBurst }}
- --client-burst={{ . }}
{{- with .logFormat }}
- --log-format={{ . }}
{{- end }}
{{- with .clientPageSize }}
- --client-page-size={{ . }}
{{- with .logLevel }}
- --log-level={{ . }}
{{- end }}
{{- with .disableControllers }}
- --disable-controllers={{ . }}
{{- with .metricsAddress }}
- --metrics-address={{ . }}
{{- end }}
{{- with .pluginDir }}
- --plugin-dir={{ . }}
{{- end }}
{{- with .profilerAddress }}
- --profiler-address={{ . }}
{{- end }}
{{- with .resticTimeout }}
- --restic-timeout={{ . }}
{{- end }}
{{- if .restoreOnlyMode }}
- --restore-only
{{- end }}
{{- with .restoreResourcePriorities }}
- --restore-resource-priorities={{ . }}
{{- end }}
{{- with .storeValidationFrequency }}
- --store-validation-frequency={{ . }}
{{- end }}
{{- with .garbageCollectionFrequency }}
- --garbage-collection-frequency={{ . }}
{{- with .terminatingResourceTimeout }}
- --terminating-resource-timeout={{ . }}
{{- end }}
### Global Flags
{{- with .features }}
- --features={{ . }}
{{- end }}
{{- with .namespace }}
- --namespace={{ . }}
Expand Down
64 changes: 36 additions & 28 deletions charts/velero/values.yaml
Expand Up @@ -286,47 +286,55 @@ configuration:
# --------------------
# `velero server` default: 1m
backupSyncPeriod:
# `velero server` default: 1h
resticTimeout:
# `velero server` default: namespaces,persistentvolumes,persistentvolumeclaims,secrets,configmaps,serviceaccounts,limitranges,pods
restoreResourcePriorities:
# `velero server` default: false
restoreOnlyMode:
# `velero server` default: 20.0
clientQPS:
# `velero server` default: 30
clientBurst:
# `velero server` default: empty
# `velero server` default: 500
clientPageSize:
# `velero server` default: 20.0
clientQPS:
# Name of the default backup storage location. Default: default
defaultBackupStorageLocation:
# How long to wait by default before backups can be garbage collected. Default: 72h
defaultBackupTTL:
# How often 'restic prune' is run for restic repositories by default. Default: 168h. Optional.
defaultResticPruneFrequency:
# Name of the default volume snapshot location.
defaultVolumeSnapshotLocations:
# Set true for backup all pod volumes without having to apply annotation on the pod when used restic Default: false. Other option: false.
defaultVolumesToRestic:
# `velero server` default: empty
disableControllers:
# `velero server` default: 1m
storeValidationFrequency:
# `velero server` default: 1h
garbageCollectionFrequency:
# Set log-format for Velero pod. Default: text. Other option: json.
logFormat:
# Set log-level for Velero pod. Default: info. Other options: debug, warning, error, fatal, panic.
logLevel:
# The address to expose prometheus metrics. Default: :8085
metricsAddress:
# Directory containing Velero plugins. Default: /plugins
pluginDir:
# The address to expose the pprof profiler. Default: localhost:6060
profilerAddress:
# `velero server` default: 4h
resticTimeout:
# `velero server` default: false
restoreOnlyMode:
# `velero server` default: customresourcedefinitions,namespaces,storageclasses,volumesnapshotclass.snapshot.storage.k8s.io,volumesnapshotcontents.snapshot.storage.k8s.io,volumesnapshots.snapshot.storage.k8s.io,persistentvolumes,persistentvolumeclaims,secrets,configmaps,serviceaccounts,limitranges,pods,replicasets.apps,clusterclasses.cluster.x-k8s.io,clusters.cluster.x-k8s.io,clusterresourcesets.addons.cluster.x-k8s.io
restoreResourcePriorities:
# `velero server` default: 1m
storeValidationFrequency:
# How long to wait on persistent volumes and namespaces to terminate during a restore before timing out. Default: 10m
terminatingResourceTimeout:
# Comma separated list of velero feature flags. default: empty
# features: EnableCSI
features:
# `velero server` default: velero
namespace:
#

# additional key/value pairs to be used as environment variables such as "AWS_CLUSTER_NAME: 'yourcluster.domain.tld'"
extraEnvVars: {}

# Comma separated list of velero feature flags. default: empty
# features: EnableCSI
features:

# Set log-level for Velero pod. Default: info. Other options: debug, warning, error, fatal, panic.
logLevel:

# Set log-format for Velero pod. Default: text. Other option: json.
logFormat:

# Set true for backup all pod volumes without having to apply annotation on the pod when used restic Default: false. Other option: false.
defaultVolumesToRestic:

# How often 'restic prune' is run for restic repositories by default. Default: 168h. Optional.
defaultResticPruneFrequency:

##
## End of backup/snapshot location settings.
##
Expand Down

0 comments on commit f5e6c84

Please sign in to comment.