# argo-cd 에서 기존 1.0.0 가 있어 새로 다운로드 하지 않는 이슈가 발생했다.
# helm chart 는 아래 위치에 캐싱된다.
kubectl exec -n argocd argocd-repo-server-aaa-bbb -- ls -ahl /tmp/_argocd-repo
# 이럴 땐 argocd-repo-xxxx pod 를 삭제(재시작)해주면 된다.
kubectl delete pod -n argocd -l app.kubernetes.io/name=argocd-repo-server
# 참고로 argocd-redis-xxx pod 는 helm 차트와는 관련은 없고 app 의 sync/health 상태를 UI 로 빠르게 보여주는 등의 역할만 한다.
# 참고로 /tmp/_argocd-repo 조회시 permission denied 가 된다.
# 다음과 같이 busybox 이미지로 ephemeralcontainer 를 띄워 접근을 해봤지만
# debug 명령에는 /tmp (emptyDir) 마운트하는 옵션이 없어 /tmp 에는 빈값이 된다.
kubectl debug -n argocd -it argocd-repo-server-aaa-bbb --container=ysoftman-debug --image=busybox --target=repo-server
# argo-repo-server pod > ephemeralContainers > 에 볼륨 마운트에 /tmp 설정을 한 ephemeralContainer 설정이 필요하다고 한다.
# 아니면 argo-repo-server deployment 에서 다음 값으로 수정 후 새로 pod 가 뜨면 그때부터 볼 수가 있다.
securityContext:
runAsNonRoot: false
comments:
댓글 쓰기