Install persistent cli command in GCP kubernetes cluster

9/15/2020

Im trying to install Velero in a Kubernetes cluster on GCP, I have successfully installed it the first time but every time I logged back to the GCP shell the command is not available anymore, (as if the installation disappeared), I still can see my velero backups tho when I install it again

How can I persistently install any utility?

-- Rodrigo Peniche
cluster-computing
command-line-interface
google-cloud-platform
kubernetes
shell

1 Answer

9/23/2020

Bear in mind that Cloud Shell VM is ephemeral and is turned down when you are not using it interactively. See the documentation below:

The virtual machine instance that backs your Cloud Shell session is not permanently allocated to a Cloud Shell session and terminates if the session is inactive for an hour. After the instance is terminated, any modifications that you made to it outside your $HOME are lost.

Also, I am not sure how exactly you have installed Valero in your GCP cluster but you might find this guide useful. It shows how to install Velero with HELM in GCP, step by step.

-- WytrzymaƂy Wiktor
Source: StackOverflow