트러블슈팅 명령어

트러블슈팅 명령어 (Troubleshooting commands)

알림 설정·발송 문제를 진단할 때 쓰는 argocd admin notifications 명령어의 하위 명령어들을 정리한 페이지입니다. 템플릿·트리거를 직접 조회하고 실행해 볼 수 있어요.

출처: 문서

본문

argocd admin notifications template get

구성된 템플릿에 대한 정보를 출력합니다

argocd admin notifications template get [flags]

예시 (Examples)

# 모든 템플릿 출력
argocd admin notifications template get
# app-sync-succeeded 템플릿 정의를 YAML 형식으로 출력
argocd admin notifications template get app-sync-succeeded -o=yaml

옵션 (Options)

  -h, --help            help for get
  -o, --output string   Output format. One of:json|yaml|wide|name (default "wide")

부모 명령어에서 상속된 옵션 (Options inherited from parent commands)

      --argocd-repo-server string      Argo CD repo server address (default "argocd-repo-server:8081")
      --argocd-repo-server-plaintext   Use a plaintext client (non-TLS) to connect to repository server
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --config-map string              argocd-notifications-cm.yaml file path
      --context string                 The name of the kubeconfig context to use
      --disable-compression            If true, opt-out of response compression for all requests to the server
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string              Path to a kube config. Only required if out-of-cluster
  -n, --namespace string               If present, the namespace scope for this CLI request
      --password string                Password for basic authentication to the API server
      --proxy-url string               If provided, this URL will be used to connect via proxy
      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
      --secret string                  argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
      --server string                  The address and port of the Kubernetes API server
      --tls-server-name string         If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
      --username string                Username for basic authentication to the API server

argocd admin notifications template notify

지정된 템플릿으로 알림을 생성하고 지정된 수신자에게 보냅니다

argocd admin notifications template notify NAME RESOURCE_NAME [flags]

예시 (Examples)

# in-cluster config map 과 secret 을 사용해 알림 트리거
argocd admin notifications template notify app-sync-succeeded guestbook --recipient slack:my-slack-channel

# 생성된 알림을 콘솔에 렌더링
argocd admin notifications template notify app-sync-succeeded guestbook

옵션 (Options)

  -h, --help                    help for notify
      --recipient stringArray   List of recipients (default [console:stdout])

부모 명령어에서 상속된 옵션 (Options inherited from parent commands)

      --argocd-repo-server string      Argo CD repo server address (default "argocd-repo-server:8081")
      --argocd-repo-server-plaintext   Use a plaintext client (non-TLS) to connect to repository server
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --config-map string              argocd-notifications-cm.yaml file path
      --context string                 The name of the kubeconfig context to use
      --disable-compression            If true, opt-out of response compression for all requests to the server
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string              Path to a kube config. Only required if out-of-cluster
  -n, --namespace string               If present, the namespace scope for this CLI request
      --password string                Password for basic authentication to the API server
      --proxy-url string               If provided, this URL will be used to connect via proxy
      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
      --secret string                  argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
      --server string                  The address and port of the Kubernetes API server
      --tls-server-name string         If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
      --username string                Username for basic authentication to the API server

argocd admin notifications trigger get

구성된 트리거에 대한 정보를 출력합니다

argocd admin notifications trigger get [flags]

예시 (Examples)

# 모든 트리거 출력
argocd admin notifications trigger get
# on-sync-failed 트리거 정의를 YAML 형식으로 출력
argocd admin notifications trigger get on-sync-failed -o=yaml

옵션 (Options)

  -h, --help            help for get
  -o, --output string   Output format. One of:json|yaml|wide|name (default "wide")

부모 명령어에서 상속된 옵션 (Options inherited from parent commands)

      --argocd-repo-server string      Argo CD repo server address (default "argocd-repo-server:8081")
      --argocd-repo-server-plaintext   Use a plaintext client (non-TLS) to connect to repository server
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --config-map string              argocd-notifications-cm.yaml file path
      --context string                 The name of the kubeconfig context to use
      --disable-compression            If true, opt-out of response compression for all requests to the server
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string              Path to a kube config. Only required if out-of-cluster
  -n, --namespace string               If present, the namespace scope for this CLI request
      --password string                Password for basic authentication to the API server
      --proxy-url string               If provided, this URL will be used to connect via proxy
      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
      --secret string                  argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
      --server string                  The address and port of the Kubernetes API server
      --tls-server-name string         If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
      --username string                Username for basic authentication to the API server

argocd admin notifications trigger run

지정된 트리거 조건을 평가하고 결과를 출력합니다

argocd admin notifications trigger run NAME RESOURCE_NAME [flags]

예시 (Examples)

# 'argocd-notification-cm' ConfigMap 에 구성된 트리거 실행
argocd admin notifications trigger run on-sync-status-unknown ./sample-app.yaml

# 'argocd-notifications-cm' ConfigMap 대신 my-config-map.yaml 사용해 트리거 실행
argocd admin notifications trigger run on-sync-status-unknown ./sample-app.yaml \
    --config-map ./my-config-map.yaml

옵션 (Options)

  -h, --help   help for run

부모 명령어에서 상속된 옵션 (Options inherited from parent commands)

      --argocd-repo-server string      Argo CD repo server address (default "argocd-repo-server:8081")
      --argocd-repo-server-plaintext   Use a plaintext client (non-TLS) to connect to repository server
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --config-map string              argocd-notifications-cm.yaml file path
      --context string                 The name of the kubeconfig context to use
      --disable-compression            If true, opt-out of response compression for all requests to the server
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string              Path to a kube config. Only required if out-of-cluster
  -n, --namespace string               If present, the namespace scope for this CLI request
      --password string                Password for basic authentication to the API server
      --proxy-url string               If provided, this URL will be used to connect via proxy
      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
      --secret string                  argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
      --server string                  The address and port of the Kubernetes API server
      --tls-server-name string         If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
      --username string                Username for basic authentication to the API server

더 알아보기 (Learn more)