Config Connector는 Kubernetes 구성을 사용하여 Google Cloud 리소스를 만듭니다. 이러한 리소스는 Kubernetes 네임스페이스에 구성됩니다.
Config Connector가 네임스페이스를 사용하는 방법
Config Connector는 리소스 Namespace의 주석을 사용하여 리소스를 생성할 프로젝트, 폴더 또는 조직을 알아낼 수 있습니다. Namespace의 주석은 리소스 구성에서 리소스를 생성할 위치를 아직 지정하지 않은 경우에만 적용됩니다. 자세한 정보는 프로젝트 및 폴더로 리소스 구성을 참조하세요.
예를 들어 프로젝트 ID가 myProject인 프로젝트에서 이름이 mySQL인 Cloud SQL 인스턴스를 만들려면 이 명령어를 실행하여 네임스페이스에 주석을 추가합니다.
[[["이해하기 쉬움","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\u003eConfig Connector utilizes Kubernetes Namespaces to manage the creation of Google Cloud resources.\u003c/p\u003e\n"],["\u003cp\u003eAnnotations within a Namespace can specify the Google Cloud project, folder, or organization where Config Connector should provision resources.\u003c/p\u003e\n"],["\u003cp\u003eIf a resource configuration already includes project details, the Namespace's annotation is ignored by Config Connector.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud's resource hierarchy, including Projects, Folders, and Organizations, can be mapped to Config Connector Namespaces using annotations.\u003c/p\u003e\n"]]],[],null,["# Namespaces and Google Cloud projects\n====================================\n\n*** ** * ** ***\n\nConfig Connector creates Google Cloud resources\nusing Kubernetes configuration. These resources are organized in\n[Kubernetes Namespaces](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).\n\nHow Config Connector uses Namespaces\n------------------------------------\n\nConfig Connector can use the annotations on the resource's `Namespace` to\ndetermine what project, folder, or organization to create the resources in. The\n`Namespace`'s annotation will only be applied if the resource configuration does\nnot already specify where to create the resource. For more information, see\n[Organizing resources with projects and folders](/config-connector/docs/how-to/organizing-resources/overview)\n\nFor example, if you want to create a Cloud SQL Instance with a name of\n`mySQL` in your project with a project ID of `myProject`, then run this command to annotate your namespace: \n\n kubectl annotate namespace \\\n NAMESPACE_NAME cnrm.cloud.google.com/project-id=\"myProject\"\n\nReplace \u003cvar translate=\"no\"\u003eNAMESPACE_NAME\u003c/var\u003e with your Namespace name.\n\nThen, create a Config Connector `SQLInstance` with a name of `mySQL` in\nyour namespace. Config Connector creates a corresponding Cloud SQL instance in your\nspecified Google Cloud project, based on the configured namespace annotation.\n\nUsing Namespaces with projects, folders, and organizations\n----------------------------------------------------------\n\nGoogle Cloud supports organizing resources at the\n[Project, Folder, and Organization](/resource-manager/docs/cloud-platform-resource-hierarchy#resource-hierarchy-detail)\nlevels. You can add Annotations to your Config Connector Namespaces to map\nresources to a [Project](/resource-manager/docs/cloud-platform-resource-hierarchy#projects), a [Folder](/resource-manager/docs/cloud-platform-resource-hierarchy#folders) or\n[Organization](/resource-manager/docs/cloud-platform-resource-hierarchy#organizations).\n\nTo learn more, see\n[Organizing resources with projects, folders, or organizations](/config-connector/docs/how-to/organizing-resources/overview)."]]