File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,26 +226,21 @@ export class GameServerNodeController {
226226 echo "Waiting for Tailscale IP";
227227
228228 for i in {1..30}; do
229- TS_IP =$(tailscale ip -4 2>/dev/null | head -n 1)
230- if [ -n "$TS_IP " ]; then
229+ TAILSCALE_IP =$(tailscale ip -4 2>/dev/null | head -n 1)
230+ if [ -n "$TAILSCALE_IP " ]; then
231231 break
232232 fi
233233 sleep 2
234234 done
235235
236- if [ -z "$TS_IP" ]; then
237- echo "ERROR: Tailscale IP not assigned"
238- exit 1
239- fi
240-
241- echo "Tailscale IP acquired: $TS_IP"
236+ echo "Tailscale IP: $TAILSCALE_IP"
242237
243238 mkdir -p /etc/rancher/k3s
244239
245240 rm -f /etc/rancher/k3s/config.yaml
246241
247242cat <<-EOF >/etc/rancher/k3s/config.yaml
248- node-ip: $TS_IP
243+ node-ip: $TAILSCALE_IP
249244
250245 kubelet-arg:
251246 - "cpu-manager-policy=static"
You can’t perform that action at this time.
0 commit comments