I'm setting up Spinnaker in K8s with aws-ecr. My setup and steps are:
on AWS side:
- Added policies ecr-pull, ecr-push, and ecr-generate-token
- Attached the policy to a role
Spinnaker setup:
Modified values.yaml with below above settings: ```accounts:
- name: my-ecr address: https://123456xxx.dkr.ecr.my-region.amazonaws.com repositories:
- 123456xxx.dkr.ecr..amazonaws.com/spinnaker-test-project ```
Annotated clouddriver.yaml: deployment to use created role (using the IAM role in a pod by referencing the role name in an annotation on the pod specification)
But it doesn't work and the error on the cloudrvier side is :
.d.r.p.a.DockerRegistryImageCachingAgent : Could not load tags for 1234xxxxx.dkr.ecr.<my_region>.amazonaws.com/spinnaker-test-project in https://1234xxxxx.dkr.ecr.<my_region>.amazonaws.com
Would like to get some help or advice what I'm missing, thank you