From 47dc33c7494c26d64cc45d5f8014a60906367971 Mon Sep 17 00:00:00 2001 From: Julian Vollmer Date: Mon, 26 Jan 2026 16:52:11 +0100 Subject: [PATCH] pipeline #4 --- .gitea/workflows/deploy.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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