Skip to content

Commit

Permalink
Provide reference documentation about GKE feature
Browse files Browse the repository at this point in the history
Workload Identity (the same link repeated from cron-job-image-auth.md)

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
  • Loading branch information
kingdonb authored and Kingdon Barrett committed Jan 14, 2022
1 parent 9bd9053 commit 1f9240b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions content/en/docs/guides/image-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,18 +690,20 @@ patches:
path: /spec/template/spec/containers/0/args/-
value: --gcp-autologin-for-gcr
### add this patch to annotate service account if you are using Workload identity
- target:
version: v1
group: ""
kind: ServiceAccount
patchesStrategicMerge:
- |-
apiVersion: v1
kind: ServiceAccount
metadata:
name: image-reflector-controller
namespace: flux-system
patch: |-
- op: add
path: /metadata/annotations/spec/
value: <gcp-service-account-name>.<PROJECT_ID>.iam.gserviceaccount.com
annotations:
iam.gke.io/gcp-service-account: <gcp-service-account-name>@<PROJECT_ID>.iam.gserviceaccount.com
```

Take a look at [this guide](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) for more
information about setting up GKE Workload Identity.

#### Using Native Azure ACR Auto-Login

There is native support for the Azure Container Registry] available since
Expand Down

0 comments on commit 1f9240b

Please sign in to comment.