Docker image containing bash, kubectl, and gettext
A simple Docker image containing kubectl and the gettext package.
This is intended to be used in a CI/CD pipeline.
It can be used in a GitLab CI pipeline, like:
deploy_dev:
image:
name: seancallaway/kubectl
stage: deploy
variables:
MY_NAMESPACE: staging
before_script:
- cd k8s
script:
- envsubst < env_configmap.yaml > staging_env_configmap.yaml
- envsubst < secrets.yaml > staging_secrets.yaml
- envsubst < ingress.yaml > staging_ingress.yaml
- envsubst < deployment.yaml > staging_deployment.yaml
- kubectl apply -n ${MY_NAMESPACE} -f staging_env_configmap.yaml
- kubectl apply -n ${MY_NAMESPACE} -f nginx_configmap.yaml
- kubectl apply -n ${MY_NAMESPACE} -f staging_secrets.yaml
- kubectl apply -n ${MY_NAMESPACE} -f staging_deployment.yaml
- kubectl apply -n ${MY_NAMESPACE} -f service.yaml
- kubectl apply -n ${MY_NAMESPACE} -f staging_ingress.yaml
only:
- development
Sean Callaway – @smcallaway
Distributed under the GPLv3 license. See LICENSE
for more information.
https://github.com/seancallaway/docker-kubectl
- Fork it (https://github.com/seancallaway/docker-kubectl/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request