Skip to content

Commit 8872f00

Browse files
authored
Use dl.k8s.io instead of hardcoded GCS URIs (#2240)
The `storage.googleapis.com/kubernetes-release` URL is a hard coded path to a GCS bucket location. To allow redirecting and spreading the load across multiple hosting locations, the `dl.k8s.io` URL has been introduced. Signed-off-by: Sean McGinnis <[email protected]>
1 parent 6639520 commit 8872f00

File tree

1 file changed

+1
-1
lines changed
  • tests/playbooks/roles/install-k3s/tasks

1 file changed

+1
-1
lines changed

tests/playbooks/roles/install-k3s/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
158158
mkdir -p {{ ansible_user_dir }}/.kube
159159
scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ ansible_user_dir }}/.ssh/id_rsa ubuntu@{{ k3s_fip }}:/etc/rancher/k3s/k3s.yaml {{ ansible_user_dir }}/.kube/config
160-
curl -sLO# https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
160+
curl -sLO# https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl
161161
chmod +x ./kubectl; sudo mv ./kubectl /usr/local/bin/kubectl
162162
kubectl config set-cluster default --server=https://{{ k3s_fip }}:6443 --kubeconfig {{ ansible_user_dir }}/.kube/config
163163

0 commit comments

Comments
 (0)