Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion platform/scripts/bootstrap/bootstrap-tailnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ printf '%s\n' "${TS_AUTH_KEY}" |
"${ssh_args[@]}" "${ssh_target}" '
read -r TS_AUTH_KEY
sudo systemctl enable --now tailscaled >/dev/null
# accept-dns=false: otherwise MagicDNS overwrites /etc/resolv.conf with
# 100.100.100.100 only, which k3s then passes to pods — and the pod
# subnet cannot reach the Tailscale kernel resolver, so every pod DNS
# lookup times out. We keep tailnet hostnames resolvable on the host
# via `tailscale status` / explicit `100.64.*.*` use instead.
sudo env TS_AUTH_KEY="${TS_AUTH_KEY}" tailscale up \
--auth-key="${TS_AUTH_KEY}" \
--hostname="'"${NODE_NAME}"'" \
--accept-dns=true
--accept-dns=false
'

"${ssh_args[@]}" "${ssh_target}" "tailscale status"
Expand Down
Loading