Open2

argocd-image-updaterを試す

not75743not75743

ECRに接続するvalues.yaml

values.yaml
config:
  name: argocd-image-updater-config
  registries:
    - name: ECR
      api_url: https://<accountid>.dkr.ecr.<region>.amazonaws.com
      prefix: <accountid>.dkr.ecr.<region>.amazonaws.com
      ping: yes
      insecure: no
      credentials: ext:/scripts/ecr-login.sh
      credsexpire: 11h
authScripts:
  enabled: true
  scripts:
    ecr-login.sh: |
      #!/bin/sh
      aws ecr --region ap-northeast-1 get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d
extraEnv:
  - name: AWS_ACCESS_KEY_ID
    valueFrom:
      secretKeyRef:
        key: AWS_ACCESS_KEY_ID
        name: argocd-ecr-secret
  - name: AWS_SECRET_ACCESS_KEY
    valueFrom:
      secretKeyRef:
        key: AWS_SECRET_ACCESS_KEY
        name: argocd-ecr-secret