helm install velero

From wikieduonline
Revision as of 09:20, 23 October 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search

helm repo add vmware-tanzu https://vmware-tanzu.github.io/helm-charts
helm install velero vmware-tanzu/velero \
--namespace velero \
--create-namespace \
--set-file credentials.secretContents.cloud=<FULL PATH TO FILE> \
--set configuration.backupStorageLocation[0].name=<BACKUP STORAGE LOCATION NAME> \
--set configuration.backupStorageLocation[0].provider=<PROVIDER NAME> \
--set configuration.backupStorageLocation[0].bucket=<BUCKET NAME> \
--set configuration.backupStorageLocation[0].config.region=<REGION> \
--set configuration.volumeSnapshotLocation[0].name=<VOLUME SNAPSHOT LOCATION NAME> \
--set configuration.volumeSnapshotLocation[0].provider=<PROVIDER NAME> \
--set configuration.volumeSnapshotLocation[0].config.region=<REGION> \
--set initContainers[0].name=velero-plugin-for-<PROVIDER NAME> \
--set initContainers[0].image=velero/velero-plugin-for-<PROVIDER NAME>:<PROVIDER PLUGIN TAG> \
--set initContainers[0].volumeMounts[0].mountPath=/target \
--set initContainers[0].volumeMounts[0].name=plugins


helm install velero vmware-tanzu/velero --namespace velero --create-namespace --set 
"configuration.backupStorageLocation[0].name=testlocation" --set 
"configuration.volumeSnapshotLocation[0].name=testname" --set 
"configuration.backupStorageLocation[0].provider=aws" --set 
"configuration.backupStorageLocation[0].bucket=bucketname" --set 
"configuration.volumeSnapshotLocation[0].provider=aws" 
NAME: velero
LAST DEPLOYED: Mon Oct 23 11:18:55 2023
NAMESPACE: velero
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Check that the velero is up and running:

    kubectl get deployment/velero -n velero

Check that the secret has been created:

    kubectl get secret/velero -n velero

Once velero server is up and running you need the client before you can use it
1. wget https://github.com/vmware-tanzu/velero/releases/download/v1.12.0/velero-v1.12.0-darwin- amd64.tar.gz 
2. tar -xvf velero-v1.12.0-darwin-amd64.tar.gz -C velero-client

More info on the official site: https://velero.io/docs

Errors

helm install velero vmware-tanzu/velero --namespace velero --create-namespace 


 Error: INSTALLATION FAILED: 2 errors occurred:
 	* BackupStorageLocation.velero.io "default" is invalid: [spec.objectStorage.bucket: 
 Required value, spec.provider: Required value] 
	* VolumeSnapshotLocation.velero.io "default" is invalid: spec.provider: Required value


Error: INSTALLATION FAILED: cannot re-use a name that is still in use
Users of zsh might need to put quotes around key/value pairs.

See also

Advertising: