pipeline #7
This commit is contained in:
parent
cc65816ef9
commit
a4df93c326
|
|
@ -134,6 +134,19 @@ jobs:
|
||||||
|
|
||||||
echo "📁 kubeconfig created at ~/.kube/config"
|
echo "📁 kubeconfig created at ~/.kube/config"
|
||||||
chmod 600 ~/.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
|
- name: Test kubectl connection
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -342,6 +355,19 @@ jobs:
|
||||||
|
|
||||||
echo "📁 kubeconfig created at ~/.kube/config"
|
echo "📁 kubeconfig created at ~/.kube/config"
|
||||||
chmod 600 ~/.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
|
- name: Test kubectl connection
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue