argo cd ssot 파일 추가

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: apps
  namespace: argocd
spec:
  project: sulsul
  source:
    repoURL: "[email protected]:zeze1004/sulsul-gitOps"
    targetRevision: main
    path: sulsul-chart
  destination:
    name: in-cluster
    namespace: argocd
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true

Untitled

apps 라는 애플리케이션 생성

→ sulsul application으로 변경 필요

→ repo는 스프링부트 레포지토리로 변경하기

status:
  conditions:
    - lastTransitionTime: '2022-05-10T07:16:44Z'
      message: Application referencing project sulsul which does not exist
      type: InvalidSpecError
  health:
    status: Unknown
  sync:
    status: Unknown

여전히 sulsul 존재하지 않는다는 에러

참고 github를 보고 수정

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: sulsul-be
  namespace: argocd
spec:
  project: default
  source:
    repoURL: "[email protected]:depromeet/sulsul-BE"
    targetRevision: main
    path: .
  destination:
    server: <https://kubernetes.default.svc>
    namespace: default
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true

에러

rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"

퍼블릭 레포인데 왜...?