small docker container to handle kubectl with ENV based configuration
477
A small helper image to run kubectl inside a CI like gitlab-ci.
cat ~/.kube/config | base64
KUBECONFIG_BASE64kubectl command, e.g.
docker run -e KUBECONFIG_BASE64='....' loumaris/kubectl get nodes
That's it ;-)
.gitlab-ci.yaml (e.g. update nginx):
stages:
- deploy
deploy:
stage: deploy
script:
- docker run -e "KUBECONFIG_BASE64=$KUBECONFIG_BASE64" loumaris/kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1 --record
only:
- master
- tags
Content type
Image
Digest
Size
15.6 MB
Last updated
over 6 years ago
docker pull loumaris/kubectl