File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,6 @@ packages:
110110 - git
111111 - wget
112112 - qemu-guest-agent
113- snap:
114- commands:
115- - snap install kubectl --classic
116113write_files:
117114 - path: /etc/environment
118115 append: true
@@ -189,6 +186,10 @@ runcmd:
189186 - curl -S -OL https://releases.hashicorp.com/terraform/${LATEST_TERRAFORM_VERSION} /terraform_${LATEST_TERRAFORM_VERSION} _linux_amd64.zip
190187 - unzip -qq terraform_${LATEST_TERRAFORM_VERSION} _linux_amd64.zip -d /usr/local/bin
191188
189+ # Install kubectl
190+ - curl -LO "https://dl.k8s.io/release/$( curl -L -s https://dl.k8s.io/release/stable.txt) /bin/linux/amd64/kubectl"
191+ - install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
192+
192193 # Install k3d
193194 - curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
194195
@@ -204,13 +205,13 @@ runcmd:
204205 - chown -R splunk:splunk /home/splunk
205206
206207 # Deploy private registry
207- - /snap /bin/kubectl apply -f /home/splunk/workshop/k3s/registry/registry.yaml
208+ - /usr/local /bin/kubectl apply -f /home/splunk/workshop/k3s/registry/registry.yaml
208209
209210 # Chaos Mesh
210211 - curl -sSL https://mirrors.chaos-mesh.org/v2.8.0/install.sh | bash -s -- --k3s
211212
212213 # Deploy Splunk secrets
213- - /snap /bin/kubectl apply -f /tmp/workshop-secrets.yaml
214+ - /usr/local /bin/kubectl apply -f /tmp/workshop-secrets.yaml
214215
215216 # Increase inotify limits for k3s
216217 - sysctl -w fs.inotify.max_user_watches=524288
You can’t perform that action at this time.
0 commit comments