mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
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:
@@ -10,13 +10,9 @@ curl -L -o /usr/local/bin/kind $URL
|
|||||||
chmod +x /usr/local/bin/kind
|
chmod +x /usr/local/bin/kind
|
||||||
|
|
||||||
## Install kubectl
|
## Install kubectl
|
||||||
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
|
KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
|
||||||
touch /etc/apt/sources.list.d/kubernetes.list
|
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
|
||||||
# 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
|
|
||||||
|
|
||||||
# Install Helm
|
# Install Helm
|
||||||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
|
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
|
||||||
|
|||||||
Reference in New Issue
Block a user