Skip to content

Commit

Permalink
Updated the velero node-agent configuration (#13118)
Browse files Browse the repository at this point in the history
* Updated the node-agent configuration

Signed-off-by: archups <archupsawant@gmail.com>

* Update doc url to v1.10

Signed-off-by: archups <archupsawant@gmail.com>

---------

Signed-off-by: archups <archupsawant@gmail.com>
  • Loading branch information
archups committed Mar 1, 2024
1 parent 8c54e17 commit 54da62c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
10 changes: 5 additions & 5 deletions charts/backup/velero/templates/daemonset.yaml
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

{{ if .Values.velero.restic.deploy }}
{{ if .Values.velero.deployNodeAgent }}
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -80,7 +80,7 @@ spec:
mountPath: /credentials/gcp
{{- end }}
resources:
{{ toYaml .Values.velero.restic.resources | indent 10 }}
{{ toYaml .Values.velero.nodeAgent.resources | indent 10 }}
volumes:
- name: host-pods
hostPath:
Expand All @@ -101,9 +101,9 @@ spec:
securityContext:
runAsUser: 0
nodeSelector:
{{ toYaml .Values.velero.restic.nodeSelector | indent 8 }}
{{ toYaml .Values.velero.nodeAgent.nodeSelector | indent 8 }}
affinity:
{{ toYaml .Values.velero.restic.affinity | indent 8 }}
{{ toYaml .Values.velero.nodeAgent.affinity | indent 8 }}
tolerations:
{{ toYaml .Values.velero.restic.tolerations | indent 8 }}
{{ toYaml .Values.velero.nodeAgent.tolerations | indent 8 }}
{{ end }}
27 changes: 15 additions & 12 deletions charts/backup/velero/values.yaml
Expand Up @@ -14,8 +14,8 @@

velero:
# the Docker image for Velero;
# if you are using restic, make sure to use an official image
# that also contains the restic binary
# if you are using nodeAgent, make sure to use an official image
# that also contains the nodeAgent binary
image:
repository: docker.io/velero/velero
tag: v1.10.1
Expand Down Expand Up @@ -50,15 +50,18 @@ velero:
# - mountPath: /target
# name: plugins

# whether or not to create a restic daemonset
restic:
deploy: false
# Whether to deploy the node-agent daemonset.
deployNodeAgent: false

nodeAgent:
# Resource requests/limits to specify for the node-agent daemonset deployment. Optional.
# https://velero.io/docs/v1.10/customize-installation/#customize-resource-requests-and-limits
resources:
requests:
cpu: 100m
memory: 30Mi
cpu: 500m
memory: 512Mi
limits:
# during backups memory usage can spike, see https://github.com/restic/restic/issues/979
cpu: 1000m
memory: 1Gi

affinity: {}
Expand All @@ -72,7 +75,7 @@ velero:
# configure the credentials used to make snapshots (when using
# persistentVolumeProvider) and to store backups; you can enable
# multiple credentials, if for some reason you run on GCP and
# still want to make restic snapshots to be stored in AWS S3.
# still want to make nodeAgent snapshots to be stored in AWS S3.
credentials: {}
#aws:
# accessKey: ...
Expand All @@ -87,10 +90,10 @@ velero:
# AZURE_CLIENT_SECRET: ...
# AZURE_STORAGE_ACCOUNT_ID: ...
# AZURE_STORAGE_KEY: ...
#restic:
#nodeAgent:
# password: averysecurepassword

# see https://velero.io/docs/v1.8/api-types/backupstoragelocation/;
# see https://velero.io/docs/v1.10/api-types/backupstoragelocation/;
# one of the backup storage location should be marked with "default: true"
# or named "default" (previously this was the --default-backup-storage-location
# flag)
Expand All @@ -107,7 +110,7 @@ velero:
#defaultVolumeSnapshotLocations:
# - aws:aws

# see https://velero.io/docs/v1.8/api-types/volumesnapshotlocation/
# see https://velero.io/docs/v1.10/api-types/volumesnapshotlocation/
#volumeSnapshotLocations:
# aws:
# provider: aws
Expand Down

0 comments on commit 54da62c

Please sign in to comment.