Fix K3s API TLS verification for Tailscale connection

Add insecure-skip-tls-verify flag to kubectl config to bypass certificate
validation when connecting via Tailscale IP. The K3s certificates don't
include the Tailscale IP in their SANs, causing TLS verification to fail.
This commit is contained in:
Graham McIntire 2025-09-08 09:36:15 -05:00
parent 577d05b4ee
commit b93da46e4e
No known key found for this signature in database

View file

@ -71,6 +71,8 @@ jobs:
run: |
mkdir -p ~/.kube
echo "${{ secrets.TAILSCALE_KUBECONFIG }}" | base64 -d > ~/.kube/config
# Skip TLS verification for Tailscale IP connection
kubectl config set-cluster default --insecure-skip-tls-verify=true
- name: Deploy to K3s
run: |