Created
December 8, 2018 12:46
-
-
Save niiku-y/ef59d581b5c7a8e07fe46efe1a2600b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install_kubectl.sh | |
sudo apt-get update && sudo apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update && sudo apt-get install -y kubectl | |
echo "kubectl : " | |
which kubectl | |
echo "test (get pods):" | |
kubectl get pods --all-namespaces -o wide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment