중요
레거시 하위 리소스는 해당 CRD 출시하다 시점부터 더 이상 사용되지 않습니다. 현재 구성이 이 리소스 정의의 하위 리소스 형식을 사용하는 경우 를 CRD로 마이그레이션.
사용자 AtlasNetworkPeering 지정 리소스 Atlas 프로젝트 에 대한 네트워크 피어링 연결 정의합니다. 네트워크 피어링 연결은 보안 강화를 위해 공용 네트워크에서 트래픽을 격리합니다.
중요
Custom Resource(사용자 정의 리소스)는 더 이상 기본적으로 객체를 삭제하지 않음
Atlas Kubernetes Operator 사용자 지정 리소스 구성 파일을 사용하여 Atlas 구성을 관리 하지만, Atlas Kubernetes Operator 부터는 Kubernetes 에서 삭제 사용자 지정 2.0 리소스가 더 이상 ( 기본값) Atlas 에서 삭제되지 않습니다. 대신 Atlas Kubernetes Operator Atlas 에서 해당 리소스 관리를 중지할 뿐입니다. 예시 들어, Kubernetes 에서 Custom Resource(사용자
AtlasProject지정 리소스)를 삭제 하면 기본값 으로 Atlas Kubernetes Operator 더 이상 Atlas 에서 해당 프로젝트 자동으로 삭제하지 않습니다. 이러한 동작 변경은 우발적이거나 예기치 않은 삭제를 방지하기 위한 것입니다. 이 동작을 Atlas Kubernetes Operator 이전에 사용된 기본값 으로 되돌리는 2 방법0 등 자세한 학습 새 기본값: Atlas Kubernetes Operator 2 의 삭제0 보호 기능을 참조하세요.마찬가지로, Atlas Kubernetes Operator 를 사용하여 Kubernetes 의 Atlas 프로젝트 에서 팀을 제거 하는 경우 Atlas Kubernetes Atlas Kubernetes Operator 는 Atlas 에서 팀을 삭제 하지 않습니다.
기본값 Atlas 구성 값을 암시적으로 사용하지 않으려면 원하는 구성 세부 정보를 명시적으로 정의하세요. 경우에 따라 Atlas 기본값을 상속하면 조정 루프가 발생하여 사용자 지정 리소스
READY상태 달성하지 못할 수 있습니다. 예시 들어AtlasDeployment사용자 지정 리소스 에 원하는 자동 확장 동작을 명시적으로 정의하면 포함된 예시 와 같이 사용자 지정 리소스 의 정적 인스턴스 크기가 자동 확장이 활성화된 Atlas 배포서버 에 반복적으로 적용되지 않도록 할 수 있습니다.autoScaling: diskGB: enabled: true compute: enabled: true scaleDownEnabled: true minInstanceSize: M30 maxInstanceSize: M40
Atlas Kubernetes Operator Atlas 네트워크 피어링 API 리소스를 사용하여 다음 작업 중 하나를 수행합니다.
새 네트워크 피어링 연결 만듭니다.
기존 네트워크 피어링 연결 업데이트합니다.
참고
네트워크 피어링 연결 하나의 프로젝트 에만 속할 수 있습니다. 여러 프로젝트에 대해 동일한 네트워크 피어링 연결 정의하려면 각 프로젝트 에 대한 사용자 지정 리소스 정의를 만듭니다.
예시
다음 예는 AtlasNetworkPeering CRD에 대한 구성을 보여줍니다.
기본 예시 구성은 상위 Atlas 프로젝트 관리 것과 동일한 Atlas Kubernetes Operator 인스턴스 로 관리 리소스 정의합니다.
독립 CRD 예시 기본 예시 와 동일한 VPC 피어링 연결을 구성하지만, VPC 피어링 연결을 관리 Atlas Kubernetes Operator 인스턴스 외부에서 관리 Atlas 프로젝트 에 대해 구성합니다.
기본 예시
다음 예시 my-project 프로젝트 VPC 와 Amazon Web Services VPC 간의 green-leaf-peering 연결을 정의하는 AtlasNetworkPeering 사용자 지정 리소스 보여줍니다. 상위 Atlas 프로젝트 와 동일한 Atlas Kubernetes Operator 인스턴스 에서 이 리소스 관리 하려면 externalProjectRef 대신 projectRef 로 프로젝트 식별해야 합니다.
apiVersion: atlas.mongodb.com/v1 kind: AtlasNetworkPeering metadata: name: green-leaf-peering spec: projectRef: name: my-project namespace: my-operator-namespace containerRef: id: 72a6d2a69388ba121943ae27 id: 72a6d2a69388ba121943ae27 provider: AWS awsConfiguration: accepterRegionName: us-east-1 awsAccountId: 389226183042 routeTableCiderBlock: 10.0.0.0/21 vpcId: vpc-abc
독립적인 CRD 예제
다음 예시 AtlasNetworkPeering 기본 예제 에 정의된 것과 동일한 VPC피어링 연결을 구성하는 독립적인 CRD를 보여줍니다. 상위 프로젝트 와 독립적으로 리소스 관리 활성화 projectRef 대신 externalProjectRef 를 사용해야 하며, 이 리소스 상위 프로젝트 에서 API 자격 증명 상속할 수 없으므로 connectionSecret 를 직접 제공해야 합니다.
apiVersion: atlas.mongodb.com/v1 kind: AtlasNetworkPeering metadata: name: green-leaf-peering spec: externalProjectRef: projectId: 66e2f2b621571b7e69a89b66 connectionSecret: name: atlas-connection-secret containerRef: id: 72a6d2a69388ba121943ae27 id: 72a6d2a69388ba121943ae27 provider: AWS awsConfiguration: accepterRegionName: us-east-1 awsAccountId: 389226183042 routeTableCiderBlock: 10.0.0.0/21 vpcId: vpc-abc
매개변수
AtlasNetworkPeering
AtlasNetworkPeering is the Schema for the AtlasNetworkPeering API
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | atlas.mongodb.com/v1 | true |
| 문자열 |
| true |
| 객체 | Refer to the Kubernetes | true |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
AtlasNetworkPeering.spec
AtlasNetworkPeeringSpec defines the target state of AtlasNetworkPeering.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 |
| true |
| 열거형 | Name of the cloud service | true |
| 객체 | AWSConfiguration is the specific | 거짓 |
| 객체 |
| 거짓 |
| 객체 | Name of the secret containing Atlas | 거짓 |
| 객체 |
| 거짓 |
| 객체 | GCPConfiguration is the specific Google Cloud settings for network peering. | 거짓 |
| 문자열 |
| 거짓 |
| 객체 |
| 거짓 |
AtlasNetworkPeering.spec.containerRef
ContainerDualReference refers to a Network Container either by Kubernetes name or Atlas ID.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| 거짓 |
| 문자열 | Name of the container Kubernetes resource, must be present in the same namespace. Use either | 거짓 |
AtlasNetworkPeering.spec.awsConfiguration
AWSConfiguration is the specific AWS settings for network peering.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| true |
| 문자열 |
| true |
| 문자열 | User | true |
| 문자열 |
| true |
AtlasNetworkPeering.spec.azureConfiguration
AzureConfiguration is the specific Azure settings for network peering.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| true |
| 문자열 |
| true |
| 문자열 |
| true |
| 문자열 | VNetName is name of your Azure VNet. Its applicable only for Azure. | true |
AtlasNetworkPeering.spec.connectionSecret
Name of the secret containing Atlas API private and public keys.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasNetworkPeering.spec.externalProjectRef
externalProjectRef holds the parent Atlas project ID. Mutually exclusive with the "projectRef" field.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| true |
AtlasNetworkPeering.spec.gcpConfiguration
GCPConfiguration is the specific Google Cloud settings for network peering.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | User | true |
| 문자열 |
| true |
AtlasNetworkPeering.spec.projectRef
projectRef is a reference to the parent AtlasProject resource. Mutually exclusive with the "externalProjectRef" field.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the Kubernetes Resource | true |
| 문자열 | Namespace of the Kubernetes Resource | 거짓 |
AtlasNetworkPeering.status
AtlasNetworkPeeringStatus is a status for the AtlasNetworkPeering Custom resource. Not the one included in the AtlasProject
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| []object | Conditions is the list of statuses showing the current state of the Atlas Custom Resource | true |
| 객체 | AWSStatus contains | 거짓 |
| 객체 |
| 거짓 |
| 객체 | GCPStatus contains | 거짓 |
| 문자열 |
| 거짓 |
| integer |
| 거짓 |
| 문자열 | Status describes the last | 거짓 |
AtlasNetworkPeering.status.conditions
Condition describes the state of an Atlas Custom Resource at a certain point.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Status of the condition; one of True, False, Unknown. | true |
| 문자열 | Type of Atlas Custom Resource condition. | true |
| 문자열 | Last time the condition transitioned from one status to another. Represented in | 거짓 |
| 문자열 | A | 거짓 |
| 문자열 | The | 거짓 |
AtlasNetworkPeering.status.awsStatus
AWSStatus contains AWS only related status information
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| 거짓 |
| 문자열 |
| 거짓 |
AtlasNetworkPeering.status.azureStatus
AzureStatus contains Azure only related status information
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| 거짓 |
| 문자열 |
| 거짓 |
AtlasNetworkPeering.status.gcpStatus
GCPStatus contains GCP only related status information
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | GCPProjectID is | 거짓 |
| 문자열 |
| 거짓 |