A simple docker image with kubectl installed. Can be used for deployment scripts.
No entrypoint defined ! You have to use the command kubectl
. This is on purpose.
docker run --rm gaetancollaud/kubectl kubectl version
deploy:
stage: deploy
image: gaetancollaud/kubectl
script:
- cat "$KUBE_CONFIG_CONTENT" > ~/.kube/config
- kubectl version
only:
- master