A container for kubernetes deployments on GCE with gcloud, kubectl, envsubst and more extras
6.1K
This project is deprecated in favour of Enrise/KubeToolbox. Please use enrise/kube-toolbox:latest for added features and ongoing support.
Available commands in this box:
gcloud: google cloud commandskubectl: kubernetes commandshelm: helm kubernetes recipesenvsubst '${ENV_VAR_1} ${ENV_VAR_2}' < dev/kube/production.yml > production.yml: Replaces given environment variables in a file, into a new filejq: Tool to format json strings# ======================
# CI Stages
# ======================
stages:
- deploy
# ======================
# Production
# ======================
deploy to production:
stage: deploy
image: enrise/gcloudtoolbox:latest
environment:
name: production
url: https://example.com
only:
- master
before_script:
- echo $GCLOUD_SERVICE_ACCOUNT_KEY > /tmp/.gcloud_private_key
- gcloud auth activate-service-account --key-file /tmp/.gcloud_private_key
- gcloud container clusters get-credentials example-gcloud-id --project example-project --zone europe-example
script:
- envsubst < dev/kube/example.yml > example.yml
- kubectl apply -f example.yml
- kubectl rollout status deployment -n example-namespace example-deployment-name
Content type
Image
Digest
Size
436 MB
Last updated
about 5 years ago
docker pull enrise/gcloudtoolbox