Skip to content

Commit

Permalink
Rework Kubernetes installation to avoid using apt repos on Ubuntu ima…
Browse files Browse the repository at this point in the history
…ges (actions#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
  • Loading branch information
Darleev authored May 5, 2021
1 parent 1532432 commit f84d55a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions images/linux/scripts/installers/kubernetes-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f84d55a

Please sign in to comment.