Update deploying-to-google-kubernetes-engine.md #3488
+3
−2
Conversation
Without adding the role `container.clusterViewer` to the created service account I was getting the error: `Error: Required "container.clusters.get" permission(s)` when running `google-github-actions/get-gke-credentials@v0.2.1`. Adding that role, as stated in the [action readme](https://github.com/marketplace/actions/get-gke-credentials#authorization) fixed it. Also, I believe there was a mistake in the step "Store the project ID as a secret named `GKE_PROJECT`", since then the `GKE_SA_KEY` was exported.
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
@dmlls Thanks so much for opening a PR! I'll get this triaged for review |
|
It looks like our new action inadvertently closed this |
|
A stale label has been added to this pull request because it has been open 7 days with no activity. To keep this PR open, add a comment or push a commit within 3 days. |
|
Just commenting to prevent the PR from being closed by the bot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Why:
Without adding the role
container.clusterViewerto the created service account I was getting the error:Error: Required "container.clusters.get" permission(s)when runninggoogle-github-actions/get-gke-credentials@v0.2.1. Adding that role, as stated in the action readme fixed it.Also, I believe there was a mistake in the step "Store the project ID as a secret named
GKE_PROJECT", since then theGKE_SA_KEYwas exported.What's being changed:
container.clusterViewerto the created service account.GKE_SA_KEY.Check off the following: