Unable to autheticate image-reflector-controller with google artifact registry repo #5463
-
|
Hi I have created an Autopilot GKE cluster, which by default has the workload identity enabled. I have created a google service account and binded the role "roles/artifactregistry.reader" and created an IAM allow policy that gives the Kubernetes ServiceAccount access to impersonate the IAM service account. But after annotating the service account and restarting the image-reflector-controller pod I am getting this error FYI I have bootstraped my flux (v2.6.4) using terraform below is the main.tf below is the provider.tf below is the flux-kustomization-patch.yaml Below is my imagerepository spec and image policy Confirmation of the annotation being added to image-reflector-controller service account Also checked that image-reflector-controller is referencing the same serviceAccountName i.e. ( image-reflector-controller). Also confirmed if the kubernetes service account is binded to the google service account using the below gcloud cli command and output is as expected Can someone please help me to debug the issue am I missing something? Any inputs on further troubleshooting will be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
https://fluxcd.io/flux/components/image/imagerepositories/#provider |
Beta Was this translation helpful? Give feedback.
https://fluxcd.io/flux/components/image/imagerepositories/#provider