이 단계를 완료하려면 기존 구성 커넥터 리소스가 필요합니다.
리소스 예시는 구성 커넥터 시작하기를 참조하세요.
모든 리소스 나열
다음 명령어를 실행하여 구성 커넥터가 관리하는 리소스를 나열할 수 있습니다.
kubectl get gcp
리소스 상태 확인
status.condition을 보고 리소스가 준비되었는지 확인할 수 있습니다.
구성 커넥터는 리소스의 현재 상태를 반영하도록 상태를 업데이트합니다.
kubectl wait --for=condition=READY KINDNAME
다음을 바꿉니다.
KIND: 리소스 종류. 예를 들면 PubSubTopic입니다.
NAME: 리소스 이름
이벤트 보기
구성 커넥터는 리소스 관리에 대한 정보와 오류가 있는 Kubernetes 이벤트를 만듭니다. 구성 커넥터 환경에서 특정 리소스 또는 모든 이벤트를 볼 수 있습니다.
단일 리소스에 대한 이벤트 보기
다음 명령어의 출력에서 Events 필드를 검토하여 단일 리소스의 이벤트를 볼 수 있습니다.
kubectl describe KINDNAME
다음을 바꿉니다.
KIND: 리소스 종류
NAME: 리소스 이름
예를 들어 sqlinstance-sample이라는 구성 커넥터 SQLInstance 리소스가 있으면 다음 명령어를 사용하여 이벤트를 확인합니다.
kubectl describe sqlinstance sqlinstance-sample
네임스페이스에 대한 이벤트 보기
구성 커넥터 리소스를 포함하여 지정된 네임스페이스의 모든 Kubernetes 리소스 이벤트를 확인하려면 다음 명령어를 실행합니다.
kubectl --namespace CC_NAMESPACE get events
CC_NAMESPACE를 구성 커넥터가 관리하는 리소스의 네임스페이스로 바꿉니다.
구성 커넥터별 이벤트
구성 커넥터는 다음과 같은 이벤트 유형을 만들 수 있습니다.
업데이트 중
구성 커넥터 리소스의 기본 Google Cloud 리소스가 업데이트될 때 발생합니다.
UpToDate
구성 커넥터 리소스의 조정이 성공했을 때 발생합니다.
이 이벤트 유형은 기본 Google Cloud 리소스가 이제 구성 커넥터 리소스로 지정된 원하는 상태와 일치함을 나타냅니다.
UpdateFailed
구성 커넥터 리소스의 조정이 실패했을 때 발생합니다.
DependencyNotReady
참조된 구성 커넥터 리소스가 준비되지 않았을 때 발생합니다. 해당 상태를 확인하여 리소스가 준비되었는지 여부를 확인할 수 있습니다.
DependencyNotFound
참조된 구성 커넥터 리소스 또는 Kubernetes 보안 비밀을 찾을 수 없을 때 발생합니다.
DependencyInvalid
참조가 잘못되었을 때 발생합니다. 예를 들어 구성 커넥터 리소스가 Kubernetes 보안 비밀을 참조한다고 가정해보세요. 보안 비밀이 존재하지만 참조되는 키를 포함하지 않는 경우 참조가 잘못된 것으로 간주됩니다.
삭제 중
구성 커넥터 리소스가 Kubernetes API 서버에서 삭제될 때 발생합니다.
삭제됨
구성 커넥터 리소스가 Kubernetes API 서버에서 성공적으로 삭제되었을 때 발생합니다.
DeleteFailed
구성 커넥터 리소스가 Kubernetes API 서버에서 삭제되지 못했을 때 발생합니다.
ManagementConflict
구성 커넥터 리소스가 기본 Google Cloud 리소스의 소유권을 얻지 못했을 때 발생합니다. 일반적으로 다른 구성 커넥터 리소스가 해당 Google Cloud 리소스 소유권을 이미 갖고 있을 때 발생합니다. 구성 커넥터가 다중 구성 커넥터 리소스 간의 충돌을 처리하는 방법을 자세히 읽어보세요.
PreActuationTransformFailed
구성 커넥터 리소스가 작동 전 변환에 실패할 때 발생합니다.
이 이벤트 유형은 리소스 구성이 잘못되었음을 의미합니다.
PostActuationTransformFailed
구성 커넥터 리소스가 작동 후 변환에 실패할 때 발생합니다.
비관리형
구성 커넥터가 namespaced-mode에 있고 구성 커넥터 리소스가 구성 커넥터가 사용 설정되지 않은(즉, 네임스페이스에 ConfigConnectorContext 객체가 없는) 네임스페이스에 있는 경우에 발생합니다.
이 이벤트는 네임스페이스에 ConfigConnectorContext가 있더라도 ConfigConnectorContext가 구성 커넥터 리소스와 동시에 생성될 경우에 발생할 수 있습니다. 구성 커넥터에서 리소스 관리가 시작되려면 잠시 기다려야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-21(UTC)"],[[["\u003cp\u003eYou can use \u003ccode\u003ekubectl\u003c/code\u003e commands to monitor resources managed by Config Connector, including listing them with \u003ccode\u003ekubectl get gcp\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe status of a resource can be determined by examining its \u003ccode\u003estatus.condition\u003c/code\u003e and you can use \u003ccode\u003ekubectl wait --for=condition=READY\u003c/code\u003e to wait for a resource to become ready.\u003c/p\u003e\n"],["\u003cp\u003eConfig Connector generates Kubernetes events that you can view for a specific resource using \u003ccode\u003ekubectl describe KIND NAME\u003c/code\u003e, or for all resources in a namespace with \u003ccode\u003ekubectl --namespace CC_NAMESPACE get events\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConfig Connector events, like \u003ccode\u003eUpdating\u003c/code\u003e, \u003ccode\u003eUpToDate\u003c/code\u003e, \u003ccode\u003eUpdateFailed\u003c/code\u003e, \u003ccode\u003eDependencyNotReady\u003c/code\u003e, and others, provide information about the lifecycle and state of resources.\u003c/p\u003e\n"],["\u003cp\u003eConfig Connector events, such as \u003ccode\u003eManagementConflict\u003c/code\u003e, \u003ccode\u003ePreActuationTransformFailed\u003c/code\u003e, \u003ccode\u003ePostActuationTransformFailed\u003c/code\u003e, and \u003ccode\u003eUnmanaged\u003c/code\u003e give specific data regarding certain issues with the resources.\u003c/p\u003e\n"]]],[],null,["# Monitoring your resources\n=========================\n\n*** ** * ** ***\n\nTo get information on your resources, you can use `kubectl`.\n\nBefore you begin\n----------------\n\nTo complete these steps, you need existing Config Connector resources.\nFor an example resource, see\n[Getting started with Config Connector](/config-connector/docs/how-to/getting-started).\n\nListing all resources\n---------------------\n\nYou can list the resources that Config Connector manages with, by running\nthe following command: \n\n```\nkubectl get gcp\n```\n\nDetermining a resource's status\n-------------------------------\n\nYou can determine if your resource is ready by looking at its\n[status.condition](/config-connector/docs/concepts/resources#status_condition).\nConfig Connector updates the status to reflect the current state of\nyour resource. \n\n```\nkubectl wait --for=condition=READY KIND NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eKIND\u003c/var\u003e: your resource's kind. For example, `PubSubTopic`.\n- \u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e: your resource's name\n\nViewing events\n--------------\n\nConfig Connector creates Kubernetes events with information and errors about\nmanaging resources. You can view events for a specific resource, or all events\nin your Config Connector environment.\n\n### Viewing events for a single resource\n\nYou can view the events for a single resource by examining the `Events` field\nin the output of the following command: \n\n```\nkubectl describe KIND NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eKIND\u003c/var\u003e: your resource's kind\n- \u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e: your resource's name\n\nFor example, if you had a Config Connector `SQLInstance` resource\nnamed `sqlinstance-sample`, use the following command to view its events: \n\n```\nkubectl describe sqlinstance sqlinstance-sample\n```\n\n### Viewing events for a namespace\n\nTo see the events for all Kubernetes resources in a given namespace, including\nyour Config Connector resources, run the following command: \n\n```\nkubectl --namespace CC_NAMESPACE get events\n```\n\nReplace \u003cvar translate=\"no\"\u003eCC_NAMESPACE\u003c/var\u003e with the namespace Config Connector\nmanages resources from.\n\n### Config Connector-specific events\n\nConfig Connector can create the following event types:\n\nUpdating\n: Occurs when a Config Connector resource's underlying Google Cloud\n resource is being updated.\n\nUpToDate\n: Occurs when a Config Connector resource's reconciliation has succeeded.\n This event type means that the underlying Google Cloud resource now\n matches the desired state specified by the Config Connector resource.\n\nUpdateFailed\n: Occurs when a Config Connector resource's reconciliation has failed.\n\nDependencyNotReady\n: Occurs when a referenced Config Connector resource is not ready. You can\n determine whether a resource is ready by [checking its\n status](#determining-resource-status).\n\nDependencyNotFound\n: Occurs when a referenced Config Connector resource or Kubernetes Secret\n is not found.\n\nDependencyInvalid\n: Occurs when a reference is invalid. For example, suppose a Config Connector\n resource that references a Kubernetes Secret. If the Secret exists, but if\n it does not contain the key that is being referenced, then the reference\n is said to be invalid.\n\nDeleting\n: Occurs when Config Connector resource is being deleted from the Kubernetes\n API Server.\n\nDeleted\n: Occurs when a Config Connector resource has successfully been deleted from\n the Kubernetes API Server.\n\nDeleteFailed\n: Occurs when a Config Connector resource has failed to be deleted from the\n Kubernetes API Server.\n\nManagementConflict\n: Occurs when a Config Connector resource fails to take ownership of the\n underlying Google Cloud resource. When this occurs, it is usually\n because another Config Connector resource already has ownership of the\n Google Cloud resource. Read more about [how Config Connector handles\n conflicts between multiple Config Connector resources](/config-connector/docs/concepts/managing-conflicts).\n\nPreActuationTransformFailed\n: Occurs when a Config Connector resource fails to perform pre-actuation transformations.\n This event type likely means that the resource configuration is invalid.\n\nPostActuationTransformFailed\n: Occurs when a Config Connector resource fails to perform post-actuation transformations.\n\nUnmanaged\n\n: Occurs when Config Connector is in\n [namespaced-mode](/config-connector/docs/how-to/install-namespaced)\n and the Config Connector resource is in a namespace where Config Connector\n is not enabled (that is, the namespace does not have a\n `ConfigConnectorContext` object).\n\n This event can occur even if the namespace does have a\n `ConfigConnectorContext` if the `ConfigConnectorContext` was created around\n the same time as the Config Connector resource. You just need to wait\n some time for Config Connector to start managing the resource.\n\nWhat's next\n-----------\n\n- Learn more about\n [Kubernetes application introspection](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application-introspection/).\n\n- Monitor your Config Connector installation with\n [Prometheus](/config-connector/docs/how-to/monitoring-prometheus)."]]