mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-21 14:19:24 +00:00
Fix file in readme
This commit is contained in:
parent
601bebc1b0
commit
df9503ee97
3 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue