Skip to content

Commit 14ca1bb

Browse files
committed
Set URL to be IP address of proxmox instance
1 parent 9783084 commit 14ca1bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,16 @@ runcmd:
209209
# Chaos Mesh
210210
- curl -sSL https://mirrors.chaos-mesh.org/v2.8.0/install.sh | bash -s -- --k3s
211211
212+
# Get VM IP and update workshop-secrets with actual IP
213+
- sed -i "s|http://frontend|http://$(ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '^127\.' | head -n1):81|g" /tmp/workshop-secrets.yaml
214+
212215
# Deploy Splunk secrets
213216
- /snap/bin/kubectl apply -f /tmp/workshop-secrets.yaml
214217
215218
# Increase inotify limits for k3s
216219
- sysctl -w fs.inotify.max_user_watches=524288
217220
- sysctl -w fs.inotify.max_user_instances=8192
221+
218222
EOF
219223

220224
#qm destroy $VMID >/dev/null

0 commit comments

Comments
 (0)