Skip to content

Commit

Permalink
Install kind and pre-pull the node container image
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev committed Feb 27, 2024
1 parent 3e77493 commit 73669be
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions customizations/linux-runner/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,30 @@
apt:
name: jq

# Not installing kind because it has no .deb/Snap package(s)[1]
#
# [1]: https://kind.sigs.k8s.io/docs/user/quick-start/#installing-with-a-package-manager
- name: install kind
get_url:
url: https://github.com/kubernetes-sigs/kind/releases/latest/download/kind-linux-arm64
dest: /usr/local/bin/kind
mode: a+x
when: ansible_architecture == "aarch64"

- name: install kind
get_url:
url: https://github.com/kubernetes-sigs/kind/releases/latest/download/kind-linux-amd64
dest: /usr/local/bin/kind
mode: a+x
when: ansible_architecture == "x86_64"

- name: pre-create a kind cluster to fetch the latest node image
command: kind create cluster --kubeconfig /tmp/kubeconfig

- name: shut down the kind cluster
command: kind delete cluster --kubeconfig /tmp/kubeconfig

- name: remove /tmp/kubeconfig
file:
path: /tmp/kubeconfig
state: absent

- name: install kubectl
snap:
Expand Down

0 comments on commit 73669be

Please sign in to comment.