inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

argo image updater 이미지명 규칙 수정 문의

미해결

쿠버네티스 어나더 클래스-Sprint 1, 2 (#실무기초 #설치 #배포 #Jenkins #Helm #ArgoCD)

88. ArgoCD Image Updater를 이용한 이미지 자동배포 ( 💻 실습) 강의 실습 도중 발생한 문제와 해결 방법에 대해서 공유 드립니다. ArgoCD를 통해서 2232 Application을 배포할 때 values-dev.yaml 파일을 사용하여 helm chart 앱을 생성했습니다. 강사님께서 제공해주신 git 코드(fork한 코드 repo, 하기 코드 블록)를 통해서 application 생성 했을 때, 자연스럽게 1pro/api-tester:1.0.0 이미지를 가지고 와서 pod를 생성했습니다. 2232/deploy/helm/api-tester/values-dev.yaml image: repository: 1pro/api-tester pullPolicy: Always tag: 1.0.0 이후 Image-updater를 사용하여 image의 변경사항을 감지하려고 했으나 image-updater 파드에서는 감지되지 않았고, 당연히 argo cd에서도 sync 되지 않았습니다. 해당 문제를 찾아보니 regex 식의 규칙과 기존 이미지의 이미지명 형태가 동일해야 image updater가 인지를 하는 것 같아 하기 argo application과 연결된 git 디렉토리의 코드(2232/deploy/helm/api-tester/values-dev.yaml)를 같게 변경했더니 image-updater가 정상동작하면서 auto sync도 제대로 실행되었습니다. image: repository: alchdliodd/api-tester pullPolicy: Always tag: 1.1.1-250604.171111 강의 영상에서는 이렇게 맞추지 않아도 정상적으로 동작하는 것 같았는데, 이 현상이 argo image updater의 버그인지, 아니면 원래 해당 규칙을 맞추어야 하는 것인지 문의 드립니다.

  • kubernetes
  • infrastructure
  • container
  • argo
alchdli.odd 댓글 2 좋아요 1 조회수 197

argo- application create > repo와 통신 불가현상

미해결

쿠버네티스 어나더 클래스-Sprint 1, 2 (#실무기초 #설치 #배포 #Jenkins #Helm #ArgoCD)

일프로님 바쁜 와중에 질문드립니다. ​2-1. App 생성 하기 - [+ NEW APP] 내용 입력 후 결과 값이 아래와 같이 나옵니다. REPO 관련 문제 인것 같은데요. 제 설정에 문제가 있을까요 ? ~~ Unable to create application: application spec for api is invalid: InvalidSpecError: repository not accessible: repositories not accessible: &Repository{Repo: " https://github.com/k8s-1pro/kubernetes-anotherclass-sprint2.git ", Type: "", Name: "", Project: ""}: repo client error while testing repository: rpc error: code = Unknown desc = error testing repository connectivity: Get " https://github.com/k8s-1pro/kubernetes-anotherclass-sprint2.git/info/refs?service=git-upload-pack ": dial tcp: lookup github.com on 10.96.0.10:53: server misbehaving ~~~ ---- ~~~ argocd@argo-cd-argocd-server-b7cd88d6b-n5dq6:~$ git clone https://github.com/k8s-1pro/kubernetes-anotherclass-sprint2.git Cloning into 'kubernetes-anotherclass-sprint2'... fatal: unable to access ' https://github.com/k8s-1pro/kubernetes-anotherclass-sprint2.git/ ': Could not resolve host: github.com ~~~ argocd 서버에서 git clone 시 도메인 관련 문제 발생하는 부분도 확인했습니다. kube dns 에 설정이 필요할까요 ? cafe: https://cafe.naver.com/kubeops

  • kubernetes
  • infrastructure
  • container
  • argo
Beom Su Park 댓글 3 좋아요 1 조회수 1432

인기 태그

인프런 TOP Writers

주간 인기글