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:
parent
577d05b4ee
commit
b93da46e4e
1 changed files with 2 additions and 0 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue