0

I tried both option 1 and option 2 as listed in the documentation, but no tar ball was downloaded.

I am truly confused. Is it necessary to install Velero locally and a server in the Kube cluster?

I tried on both Windows and Linux, and got no result. If you can explain the procedure for both operating systems, I would appreciate it.

TRiG
  • 10,148
  • 7
  • 57
  • 107
Chams Mansouri
  • 71
  • 2
  • 11

3 Answers3

3

Please follow below steps to install Velero in Ubuntu :

wget https://github.com/vmware-tanzu/velero/releases/download/v1.2.0/velero-v1.2.0-linux-amd64.tar.gz
tar -zxvf velero-v1.2.0-linux-amd64.tar.gz
sudo mv velero-v1.2.0-linux-amd64/velero /usr/local/bin/
1

From the document that you provided, it provides the source code for you, maybe you misunderstand and I will show here:

Option 1: The import path is where the source code in. Example below:

mkdir $HOME/go
export GOPATH=$HOME/go
go get github.com/vmware-tanzu/velero

So you can use the URL https://github.com/vmware-tanzu/velero to find and download the source.

Option 2: The release page will guide you to the page where the source code in, it's in the below of the page. Just find it carefully.

Is it necessary to install Velero locally and a server in the Kube cluster?

It's all dependent on yourself. From the introduction of the Velero, it has the features here:

  • Take backups of your cluster and restore in case of loss.
  • Migrate cluster resources to other clusters.
  • Replicate your production cluster to development and testing clusters.

It can help you to backup the data in the Kubernetes cluster and migrate cluster resources to other clusters. I will suggest you install it to use its features. Or that's OK if you use another tool instead of the Velero with the same features.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39
  • Right..The release page does contain the right release for my OS. It´s the last elemet in the page; "assets" :) many thanks for the clarification. – Chams Mansouri Jan 29 '20 at 14:10
1

Steps to install Velero Client on Ubuntu:

Install Velero binary:

wget https://github.com/vmware-tanzu/velero/releases/download/v1.3.2/velero-v1.3.2-linux-amd64.tar.gz

Extract the tarball:

tar -xvf velero-v1.3.2-linux-amd64.tar.gz -C /tmp

Move the extracted velero binary to /usr/local/bin

sudo mv /tmp/velero-v1.3.2-linux-amd64/velero /usr/local/bin

Verify installation:

velero version

output should be:

Client:
    Version: v1.3.2
    Git commit: 55a9914a3e4719fb1578529c45430a8c11c28145
<error getting server version: the server could not find the requested resource (post serverstatusrequests.velero.io)>
GDBxNS
  • 139
  • 6