argocd-repo-creds.yaml 예제

argocd-repo-creds.yaml 예제 (argocd-repo-creds.yaml example)

여러 리포지토리에서 동일한 자격 증명을 재사용하기 위해 argocd-repo-creds.yaml 파일을 어떻게 작성하는지 보여주는 예제 파일이에요. 각 항목은 repo-creds 타입의 Secret으로 정의돼요.

출처: 문서

본문

argocd-repo-creds.yaml 파일의 예제예요:

# Repository credentials, for using the same credentials in multiple repositories.
apiVersion: v1
kind: Secret
metadata:
  name: argoproj-https-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repo-creds
stringData:
  url: https://github.com/argoproj
  type: helm
  password: my-password
  username: my-username
---
apiVersion: v1
kind: Secret
metadata:
  name: argoproj-ssh-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repo-creds
stringData:
  url: [email protected]:argoproj-labs
  type: helm
  sshPrivateKey: |
    [REDACTED PRIVATE KEY]
---
apiVersion: v1
kind: Secret
metadata:
  name: github-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repo-creds
stringData:
  url: https://github.com/argoproj
  type: helm
  githubAppID: 1
  githubAppInstallationID: 2
  githubAppPrivateKey: |
    [REDACTED PRIVATE KEY]
---
apiVersion: v1
kind: Secret
metadata:
  name: github-enterprise-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repo-creds
stringData:
  url: https://github.com/argoproj
  type: helm
  githubAppID: 1
  githubAppInstallationID: 2
  githubAppEnterpriseBaseUrl: https://ghe.example.com/api/v3
  githubAppPrivateKey: |
    [REDACTED PRIVATE KEY]
---
apiVersion: v1
kind: Secret
metadata:
  name: private-oci-repo
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repo-creds
stringData:
  username: my-username
  password: my-password
  project: myproject
  type: oci
  url: oci://my.registry.com/namespace

더 알아보기 (Learn more)