The Docker image (deepmind/kapitan:ci
) (Dockerfile) comes pre-packages with gcloud
, gsutil
, bq
, kubectl
and kapitan
.
The following commands are run using the deepmind/kapitan:ci
Docker image.
-
Compile:
kapitan compile Compiled app (2.23s)
-
Setup gcloud and GKE credentials:
echo "$GCP_SA_KEY_FROM_CI_SECRETS" > service_account_key.json gcloud auth activate-service-account --key-file service_account_key.json gcloud container clusters get-credentials CLUSTER --zone ZONE --project GCP_PROJECT_ID
-
Setup kubectl:
kubectl config set-context CLUSTER_CONTEXT --cluster CLUSTER --user USER --namespace NAMESPACE kubectl config use-context CLUSTER_CONTEXT
-
Deploy:
kubectl apply -f compiled/app/manifests/