From a4df93c3268446730b5ad29fdc9bbd6a0f520bcd Mon Sep 17 00:00:00 2001 From: Julian Vollmer Date: Mon, 26 Jan 2026 17:22:49 +0100 Subject: [PATCH] pipeline #7 --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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: |