Difference between revisions of "Helm install velero"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
[[helm repo add]] vmware-tanzu https://vmware-tanzu.github.io/helm-charts
  
  helm install velero vmware-tanzu/velero \
+
  [[helm install]] velero vmware-tanzu/velero \
 
  --namespace velero \
 
  --namespace velero \
 
  --create-namespace \
 
  --create-namespace \
 
  --set-file [[credentials.]]secretContents.cloud=<FULL PATH TO FILE> \
 
  --set-file [[credentials.]]secretContents.cloud=<FULL PATH TO FILE> \
 
  --set configuration.backupStorageLocation[0].name=<BACKUP STORAGE LOCATION NAME> \
 
  --set configuration.backupStorageLocation[0].name=<BACKUP STORAGE LOCATION NAME> \
  --set configuration.backupStorageLocation[0].provider=<PROVIDER NAME> \
+
  --set configuration.backupStorageLocation[0][[.provider]]=<PROVIDER NAME> \
 
  --set configuration.backupStorageLocation[0][[.bucket]]=<BUCKET NAME> \
 
  --set configuration.backupStorageLocation[0][[.bucket]]=<BUCKET NAME> \
 
  --set configuration.backupStorageLocation[0].config.region=<REGION> \
 
  --set configuration.backupStorageLocation[0].config.region=<REGION> \
Line 17: Line 18:
 
  --set initContainers[0].volumeMounts[0].name=plugins
 
  --set initContainers[0].volumeMounts[0].name=plugins
  
[[helm repo add]] vmware-tanzu https://vmware-tanzu.github.io/helm-charts
 
  
 +
 +
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 ==
 
== See also ==
 
* {{Velero}}
 
* {{Velero}}
 +
* {{helm install}}
  
 
[[Category:Velero]]
 
[[Category:Velero]]

Latest revision as of 09:21, 23 October 2023

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[edit]

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[edit]

Advertising: