diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d6828c9..7636587 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -154,11 +154,20 @@ jobs: exit 1 fi - echo "✅ kubeconfig validation passed" + # Add insecure-skip-tls-verify to handle self-signed certificates + echo "🔧 Configuring TLS settings for self-signed certificates..." + CURRENT_CONTEXT=$(kubectl config current-context) + CLUSTER_NAME=$(kubectl config view -o jsonpath="{.contexts[?(@.name=='$CURRENT_CONTEXT')].context.cluster}") + kubectl config set-cluster "$CLUSTER_NAME" --insecure-skip-tls-verify=true + + echo "✅ kubeconfig validation and TLS configuration completed" - name: Test kubectl connection run: | kubectl version --client + echo "Testing cluster connection..." + kubectl cluster-info + echo "Testing node access..." kubectl get nodes - name: Deploy Feature Branch @@ -383,11 +392,20 @@ jobs: exit 1 fi - echo "✅ kubeconfig validation passed" + # Add insecure-skip-tls-verify to handle self-signed certificates + echo "🔧 Configuring TLS settings for self-signed certificates..." + CURRENT_CONTEXT=$(kubectl config current-context) + CLUSTER_NAME=$(kubectl config view -o jsonpath="{.contexts[?(@.name=='$CURRENT_CONTEXT')].context.cluster}") + kubectl config set-cluster "$CLUSTER_NAME" --insecure-skip-tls-verify=true + + echo "✅ kubeconfig validation and TLS configuration completed" - name: Test kubectl connection run: | kubectl version --client + echo "Testing cluster connection..." + kubectl cluster-info + echo "Testing node access..." kubectl get nodes - name: Deploy to Production