use kubectl, fix 1

This commit is contained in:
2023-11-17 15:44:36 +01:00
parent a7c087b489
commit e441e3c932

View File

@ -14,10 +14,10 @@ steps:
deploy: deploy:
image: portainer/kubectl-shell:latest image: portainer/kubectl-shell:latest
secrets: secrets:
- source: kube-config - source: kube_config
target: KUBE_CONFIG_CONTENT target: KUBE_CONFIG_CONTENT
commands: commands:
- printf "$KUBE_CONFIG_CONTENT" > ~/kube-config - printf "$KUBE_CONFIG_CONTENT" > ~/kubeconfig
- KUBECONFIG=~/kube-config - KUBECONFIG=~/kubeconfig
- kubectl get nodes - kubectl get nodes