Skip to content

Commit 4c3b59b

Browse files
committed
Fix curl command
1 parent 718efb8 commit 4c3b59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

local-hosting/proxmox/ubuntu-cloud-kind.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ UNIQUE_HOST_ID=$(echo $RANDOM | md5sum | head -c 4)
6565
RANDOM_ADDITION=$((4000 + RANDOM % 1001))
6666
VMID=$((NEXTID + RANDOM_ADDITION))
6767
STORAGE=local-lvm
68-
HOSTNAME=$UNIQUE_HOST_ID-workshop-$VMID
68+
HOSTNAME=kind-workshop-$VMID
6969
USER=splunk
7070
PASSWORD=Splunk123!
7171
LATEST_K9S_VERSION=$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest | jq -r '.tag_name')
@@ -200,7 +200,7 @@ runcmd:
200200
- unzip -qq terraform_${LATEST_TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin
201201
202202
# Install kind
203-
- [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.30.0/kind-linux-amd64
203+
- curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.30.0/kind-linux-amd64
204204
- chmod +x ./kind
205205
- mv ./kind /usr/local/bin/kind
206206
@@ -211,7 +211,7 @@ runcmd:
211211
- usermod -aG docker splunk
212212
213213
# Create kube config and set correct permissions on splunk user home directory
214-
- mkdir /home/splunk/.kube && kubectl config view --raw > /home/splunk/.kube/config
214+
- mkdir /home/splunk/.kube && /snap/bin/kubectl config view --raw > /home/splunk/.kube/config
215215
- chmod 400 /home/splunk/.kube/config
216216
- chown -R splunk:splunk /home/splunk
217217

0 commit comments

Comments
 (0)