docs(content): harden Kubernetes and supply-chain examples

This commit is contained in:
yeasy
2026-05-22 00:53:38 -07:00
parent 8b9e4518c8
commit ec0fa15835
4 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ deploy_staging:
stage: deploy
image: dtzar/helm-kubectl
script:
- kubectl config set-cluster k8s --server=$KUBE_URL --insecure-skip-tls-verify=true
- printf '%s' "$KUBE_CA_PEM" > kube-ca.crt
- kubectl config set-cluster k8s --server=$KUBE_URL --certificate-authority=kube-ca.crt --embed-certs=true
- kubectl config set-credentials admin --token=$KUBE_TOKEN
- kubectl config set-context default --cluster=k8s --user=admin
- kubectl config use-context default