-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.sh
executable file
·28 lines (20 loc) · 961 Bytes
/
kubernetes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
source _utils.sh
# ------------------------------------------------------------------------------
e_pending "Installing Kubernetes CLI"
# ------------------------------------------------------------------------------
if test ! $(which kubectl); then
# Install Kubernetes CLI
echo "------------------------------"
echo "Setting up kubectl."
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
echo "------------------------------"
echo "Setting up helm."
brew install helm
# Install Kubernetes VSCode extensions
/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code --install-extension Azure/vscode-kubernetes-tools
else
echo "------------------------------"
echo "Upgrading Kubernetes CLI"
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
fi