Skip to content

Commit f48ad62

Browse files
authored
Merge pull request #14 from VibhorCodecianGupta/master
Add: kubectl installer script Fix #4
2 parents 7d3ad27 + 7b8cce9 commit f48ad62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

installers/kubectl/installer.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ APK_CMD=$(which apk) # apk package manager for Alpine
2323
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
2424
EOF
2525
sudo yum install -y kubectl
26+
elif [ ! -z $APK_CMD ]; then
27+
sudo apk add --no-cache curl ca-certificates && sudo apk add --update -t deps curl
28+
curl -L https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl
29+
chmod +x /usr/local/bin/kubectl
2630
else
2731
echo "Couldn't install package"
2832
exit 1;

0 commit comments

Comments
 (0)