AtlasThirdPartyIntegration 사용자 지정 리소스 Atlas 프로젝트 에서 타사 통합을 구성합니다. 이러한 리소스를 사용하면 다양한 모니터링 서비스와의 타사통합을 관리 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 리소스를 사용하여 다음 조치 중 하나를 수행합니다.
새로운 타사 서비스 통합을 생성합니다.
기존 타사 서비스 통합을 업데이트합니다.
예시
기본 예시
다음 예시 my-project 프로젝트 내에서 DataDog 통합을 정의하는 AtlasThirdPartyIntegration 사용자 지정 리소스 보여줍니다.
apiVersion: atlas.mongodb.com/v1 kind: AtlasThirdPartyIntegration metadata: name: my-atlas-integ spec: projectRef: name: my-project namespace: my-operator-namespace type: DATADOG datadog: apiKeySecretRef: name: datadog-secret region: US sendCollectionLatencyMetrics: enabled sendDatabaseMetrics: enabled
독립적인 CRD 예제
다음 예시 AtlasThirdPartyIntegration 기본 예제 에 정의된 것과 동일한 DataDog 통합을 정의하는 독립적인 CRD를 보여줍니다. 이 사용자 지정 리소스 정의를 사용하면 이 리소스 정의하는 데 사용되는 동일한 Atlas Kubernetes Operator 인스턴스 에서 관리 하지 않는 프로젝트 에서 이러한 타사 통합을 생성할 수 있습니다. 독립적인 작업을 활성화 하려면 projectRef 대신 externalProjectRef 를 사용해야 하며, 이 리소스 상위 프로젝트 로부터 API 자격 증명 상속할 수 없으므로 connectionSecret 를 직접 제공해야 합니다.
apiVersion: atlas.mongodb.com/v1 kind: AtlasThirdPartyIntegration metadata: name: my-atlas-integ spec: externalProjectRef: projectID: 66e2f2b621571b7e69a89b66 connectionSecret: name: atlas-connection-secret type: DATADOG datadog: apiKeySecretRef: name: datadog-secret region: US sendCollectionLatencyMetrics: enabled sendDatabaseMetrics: enabled
매개변수
AtlasTirdPartyIntegration
AtlasThirdPartyIntegration is the Schema for the atlas 3rd party integrations API.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | atlas.mongodb.com/v1 | true |
| 문자열 |
| true |
| 객체 | Refer to the Kubernetes | true |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
AtlasThirdPartyIntegration.spec
AtlasThirdPartyIntegrationSpec contains the expected configuration for an integration
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 열거형 | Type of the integration. Enum: | true |
| 객체 | Name of the secret containing Atlas | 거짓 |
| 객체 | Datadog contains the config fields for Datadog's Integration. | 거짓 |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
| 객체 | Prometheus contains the config fields for Prometheus's Integration. | 거짓 |
| 객체 | Slack contains the config fields for Slack's Integration. | 거짓 |
| 객체 |
| 거짓 |
| 객체 | Webhook contains the config fields for Webhook's Integration. | 거짓 |
AtlasThirdPartyIntegration.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 |
AtlasThirdPartyIntegration.spec.datadog
Datadog contains the config fields for Datadog's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | APIKeySecretRef holds the name of a secret containing the Datadog | true |
| 문자열 | Region is the Datadog region | true |
| 열거형 |
| 거짓 |
| 열거형 |
| 거짓 |
AtlasThirdPartyIntegration.spec.datadog.apiKeySecretRef
APIKeySecretRef holds the name of a secret containing the Datadog API key.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.externalProjectRef
externalProjectRef holds the parent Atlas project ID. Mutually exclusive with the "projectRef" field.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| true |
AtlasThirdPartyIntegration.spec.microsoftTeams
MicrosoftTeams contains the config fields for Microsoft Teams's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | URLSecretRef holds the name of a secret containing the Microsoft Teams secret | true |
AtlasThirdPartyIntegration.spec.microsoftTeams.urlSecretRef
URLSecretRef holds the name of a secret containing the Microsoft Teams secret URL.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.newRelic
NewRelic contains the config fields for New Relic's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 |
| true |
AtlasThirdPartyIntegration.spec.newRelic.credentialsSecretRef
CredentialsSecretRef holds the name of a secret containing new relic's credentials: account id, license key, read and write tokens.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.opsGenie
OpsGenie contains the config fields for Ops Genie's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | APIKeySecretRef holds the name of a secret containing Ops Genie's | true |
| 문자열 | Region is the Ops Genie region. | true |
AtlasThirdPartyIntegration.spec.opsGenie.apiKeySecretRef
APIKeySecretRef holds the name of a secret containing Ops Genie's API key.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.pagerDuty
PagerDuty contains the config fields for PagerDuty's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Region is the Pager Duty region. | true |
| 객체 |
| true |
AtlasThirdPartyIntegration.spec.pagerDuty.serviceKeySecretRef
ServiceKeySecretRef holds the name of a secret containing Pager Duty service key.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.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 | 거짓 |
AtlasThirdPartyIntegration.spec.prometheus
Prometheus contains the config fields for Prometheus's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Enabled is true when Prometheus integration is enabled. | true |
| 객체 |
| true |
| 열거형 |
| true |
AtlasThirdPartyIntegration.spec.prometheus.prometheusCredentialsSecretRef
PrometheusCredentialsSecretRef holds the name of a secret containing the Prometheus. username & password
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.slack
Slack contains the config fields for Slack's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | APITokenSecretRef holds the name of a secret containing the Slack | true |
| 문자열 |
| true |
| 문자열 |
| true |
AtlasThirdPartyIntegration.spec.slack.apiTokenSecretRef
APITokenSecretRef holds the name of a secret containing the Slack API token.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.victorOps
VictorOps contains the config fields for VictorOps's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | APIKeySecretRef is the name of a secret containing Victor Ops | true |
| 문자열 |
| true |
AtlasThirdPartyIntegration.spec.victorOps.apiKeySecretRef
APIKeySecretRef is the name of a secret containing Victor Ops API key.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.spec.webhook
Webhook contains the config fields for Webhook's Integration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | URLSecretRef holds the name of a secret containing Webhook | true |
AtlasThirdPartyIntegration.spec.webhook.urlSecretRef
URLSecretRef holds the name of a secret containing Webhook URL and secret.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasThirdPartyIntegration.status
AtlasThirdPartyIntegrationStatus holds the status of an integration
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| []object | Conditions holding the status details | 거짓 |
| 문자열 |
| 거짓 |
AtlasThirdPartyIntegration.status.conditions
Condition contains details for one aspect of the current state of this API Resource.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 |
| true |
| 문자열 | message is a human readable | true |
| 문자열 | reason contains a programmatic identifier indicating the | true |
| 열거형 | status of the condition, one of True, False, Unknown. Enum: True, False, Unknown | true |
| 문자열 | type of condition in | true |
| integer |
| 거짓 |