diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 54c2d0a..dce1178 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -134,6 +134,19 @@ jobs: echo "📁 kubeconfig created at ~/.kube/config" chmod 600 ~/.kube/config + + # Fix TLS issues by adding insecure-skip-tls-verify to all clusters + echo "🔧 Fixing TLS verification for self-signed certificates..." + + # Get all cluster names and add insecure-skip-tls-verify + kubectl config get-clusters --no-headers | while read cluster; do + if [ "$cluster" != "NAME" ]; then + echo "Setting insecure-skip-tls-verify for cluster: $cluster" + kubectl config set-cluster "$cluster" --insecure-skip-tls-verify=true + fi + done + + echo "✅ TLS configuration completed" - name: Test kubectl connection run: | @@ -342,6 +355,19 @@ jobs: echo "📁 kubeconfig created at ~/.kube/config" chmod 600 ~/.kube/config + + # Fix TLS issues by adding insecure-skip-tls-verify to all clusters + echo "🔧 Fixing TLS verification for self-signed certificates..." + + # Get all cluster names and add insecure-skip-tls-verify + kubectl config get-clusters --no-headers | while read cluster; do + if [ "$cluster" != "NAME" ]; then + echo "Setting insecure-skip-tls-verify for cluster: $cluster" + kubectl config set-cluster "$cluster" --insecure-skip-tls-verify=true + fi + done + + echo "✅ TLS configuration completed" - name: Test kubectl connection run: |