Fix file in readme

This commit is contained in:
averikitsch 2020-01-14 11:10:55 -08:00
parent 601bebc1b0
commit df9503ee97
3 changed files with 6 additions and 4 deletions

View file

@ -82,7 +82,7 @@ jobs:
run: |
gcloud container clusters get-credentials $GKE_CLUSTER \
--zone $GKE_ZONE --project $GKE_PROJECT
./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:${GITHUB_SHA}
./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/gke-test
kubectl get services -o wide

View file

@ -40,12 +40,14 @@ For pushes to the _default_ branch, `master`, the workflow will:
1. [Create a GKE cluster][cluster] or select an existing GKE cluster.
1. Update `deployment.yml` with the following values:
1. Update `gke.yml` with the following values:
* `GKE_CLUSTER`: the name of your cluster.
* `GKE_ZONE`: the zone your cluster resides.
* `IMAGE`: your preferred Docker image name.
You can find the names of your clusters using the command: `gcloud container clusters list`,
and the zone using the command: `gcloud container clusters describe <CLUSTER_NAME>`.

View file

@ -22,7 +22,7 @@ spec:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
minReadySeconds: 5
template:
metadata:
labels:
@ -30,7 +30,7 @@ spec:
spec:
containers:
- name: gke-test
image: gcr.io/github-test-238118/gke-test:TAG
image: gcr.io/GKE_PROJECT/IMAGE:TAG
ports:
- containerPort: 5000
resources: