Rework Kubernetes installation to avoid using apt repos on Ubuntu images (#3309)

* github_feed_token removal

* remove file

* GithubFeedToken remove from other files

* remove boost from docs

* Kubectl installation without additional repo

* add latest kubectl version variable
This commit is contained in:
Darii Nurgaleev
2021-05-05 15:50:15 +07:00
committed by GitHub
parent 1532432fa9
commit f84d55abeb

View File

@@ -10,13 +10,9 @@ curl -L -o /usr/local/bin/kind $URL
chmod +x /usr/local/bin/kind
## Install kubectl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
touch /etc/apt/sources.list.d/kubernetes.list
# Based on https://kubernetes.io/docs/tasks/tools/install-kubectl/, package is xenial for both OS versions.
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install -y kubectl
KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
curl -o /usr/local/bin/kubectl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl
chmod +x /usr/local/bin/kubectl
# Install Helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash