gcloud and kubectl

This commit is contained in:
Andrejus
2020-07-14 22:19:25 +01:00
parent 7078a8cf71
commit a02b41f9ec
5 changed files with 36 additions and 3 deletions

15
install/31-gcloud.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
source "$(dirname $0)/utils.sh"
if not_installed "gcloud"; then
echo "Installing gcloud..."
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
update
install google-cloud-sdk
refresh
fi
gcloud --version