AtlasProjectカスタム リソースは Atlas のプロジェクトを構成します。 AtlasProjectカスタム リソースを作成すると、Atlas Kubernetes Operator は Atlas に新しいプロジェクトを作成しようとします。
重要
カスタム リソースはデフォルトでオブジェクトを削除しなくなりました
Atlas Kubernetes Operator uses custom resource configuration files to manage your Atlas configuration, but as of Atlas Kubernetes Operator 2.0, custom resources you delete in Kubernetes are no longer (by default) deleted in Atlas. Instead, Atlas Kubernetes Operator simply stops managing those resources in Atlas. For example, if you delete an
AtlasProjectCustom Resource in Kubernetes, by default the Atlas Kubernetes Operator no longer automatically deletes the corresponding project from Atlas. This change in behavior is intended to help prevent accidental or unexpected deletions. To learn more, including how to revert this behavior to the default used prior to Atlas Kubernetes Operator 2.0, see New Default: Deletion Protection in Atlas Kubernetes Operator 2.0.同様に、Atlas Kubernetes Operator を使用してKubernetesの Atlasプロジェクトからチームを削除しても、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 Kubernetes Operator は、
spec.nameを持つプロジェクトが存在するかどうかを確認します。 プロジェクトが存在する場合、Atlas Kubernetes Operator は作成をスキップします。 調整後、Atlas Kubernetes Operator はstatus.idフィールドをプロジェクトの ID を使用して更新します。
spec.connectionSecretRef.nameパラメータを使用して、 AtlasProjectカスタムリソースの接続シークレットを設定できます。このパラメータは、デフォルトのglobal 接続シークレットを上書きします。
デフォルトでは 、Atlas Kubernetes Operator は カスタム AtlasProjectリソースと同じ名前空間に接続シークレットを保持します。シークレットを別の名前空間に保存するには、 spec.connectionSecretRef.namespaceパラメータを指定します。
Atlas Administration APIに接続するために、Atlas Kubernetes Operator は Atlas Kubernetes Operator シークレット から組織IDとAPIキーを読み取ります。
また、 AtlasProjectカスタム リソース仕様を編集して、次のオプションを構成することもできます。
An IP access list with the
spec.projectIpAccessListparameter. This IP access list grants network access to Atlas clusters in the project.Teams with the
spec.teamsparameter. A team lets you grant an access role to an entire group of Atlas users for a particular project.The maintenance window with the
spec.maintenanceWindowparameter. The maintenance window sets the hour and day that Atlas starts weekly maintenance on your database deployments.
Network peering with the
spec.networkPeersparameter. Network peering allows you to connect securely to your AWS, Azure, or Google Cloud VPC.Encryption at rest using customer-managed keys with the
spec.encryptionAtRestparameter. Encryption at rest using customer-managed keys allows you to add an additional layer of security by using your cloud provider's KMS together with the MongoDB encrypted storage engine.Private endpoints with the
spec.privateEndpointsparameter.X.509 authentication with the
spec.x509CertRef.nameparameter.Project settings with the
spec.settingsparameter, including settings to enable and disable the following:Collection of database statistics in cluster metrics
Project alerts configurations with the
spec.alertConfigurationSyncEnabledandspec.alertConfigurationsparameters.これらの設定がどのように影響するかについては、「考慮事項 」を参照してください。
Kubernetes クラスターからAtlasProjectリソースを削除すると、Atlas Kubernetes Operator は Atlas からプロジェクトを削除します。 プロジェクト内のすべてのクラスターを削除する必要があります。 それ以外の場合、Atlas は削除リクエストを拒否します。
例
次の例は、 AtlasProjectカスタム リソース仕様の例を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test project connectionSecretRef: name: my-atlas-key projectIpAccessList: - cidrBlock: "203.0.113.0/24" comment: "CIDR block for Application Server B - D"
Prometheus の例
次の例は、Prometheus と統合するAtlasProjectカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: TestPrometheusIntegration connectionSecretRef: name: my-atlas-key projectIpAccessList: - cidrBlock: "0.0.0.0/1" comment: "Everyone has access. For test purposes only." - cidrBlock: "128.0.0.0/1" comment: "Everyone has access. For test purposes only." integrations: - type: "PROMETHEUS" enabled: "true" username: "prometheus-user" passwordRef: name: "password-name" namespace: "password-namespace" scheme: "http" serviceDiscovery: "http"
詳細については、「サードパーティ サービスとの統合 」を参照してください。
注意
Atlas Kubernetes Operator は、 Grafana にインポートできるサンプルGrafana ダッシュボードを提供します。
チームの例
The following example shows an AtlasProject custom resource specification that gives the green-leaf-team the Organization Owner role for this project. The team members are defined in the AtlasTeam custom resource.
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test project teams: - teamRef: name: green-leaf-team roles: - ORGANIZATION_OWNER
詳しくは、「チームの構成 」を参照してください。
メンテナンスウィンドウの例
次の例では、自動延期を無効にして、メンテナンスウィンドウを毎週火曜日の午前 5 時 00 分に設定するAtlasProjectカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test project projectIpAccessList: - ipAddress: "192.0.2.15" comment: "IP address for Application Server A" maintenanceWindow: dayOfWeek: 3 hourOfDay: 5 autoDefer: false
プロジェクト設定の例
The following example shows an AtlasProject custom resource specification that disables the collection of database statistics in cluster metrics, data explorer, Performance Advisor, Realtime Performance Panel, and Schema Advisor.
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test project projectIpAccessList: - ipAddress: "192.0.2.15" comment: "IP address for Application Server A" settings: isCollectDatabaseSpecificsStatisticsEnabled: false isDataExplorerEnabled: false isExtendedStorageSizesEnabled: false isPerformanceAdvisorEnabled: false isRealtimePerformancePanelEnabled: false isSchemaAdvisorEnabled: false
アラート構成の例
次の例では、oplog window が 1 時間未満の場合にトリガーされるアラートを構成するAtlasProjectカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test Atlas Operator Project connectionSecretRef: name: my-atlas-key alertConfigurations: - eventTypeName: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT", enabled: true, notifications: - delayMin: 0 emailEnabled: true intervalMin: 60 roles: [ "GROUP_OWNER" ] smsEnabled: false typeName: "GROUP" threshold: operator: "LESS_THAN", threshold: "1", units: "HOURS" alertConfigurationSyncEnabled: true withDefaultAlertsSettings: false
サードパーティ アラートの構成例
次の例では、Slack に通知を送信するアラートを構成するAtlasProjectカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: Test Atlas Operator Project connectionSecretRef: name: my-atlas-key alertConfigurations: - eventTypeName: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT" enabled: true notifications: - delayMin: 0 emailEnabled: true intervalMin: 60 roles: [ "GROUP_OWNER" ] smsEnabled: false - typeName: "SLACK" apiTokenRef: name: key-name namespace: key-namespace threshold: operator: "LESS_THAN" threshold: "1" units: "HOURS" alertConfigurationSyncEnabled: true withDefaultAlertsSettings: false
パラメーター
このセクションでは、 AtlasProjectのカスタム リソース パラメータについて説明します。
spec.name型: string
必須
Atlas で作成または更新されたプロジェクトの名前。名前の長さは 64 文字を超えてはなりません。名前には、文字、数字、スペース、ダッシュ、アンダースコアのみを含めることができます。プロジェクト作成後は変更できません。
spec.alertConfigurationsタイプ: オブジェクトの配列
任意
List that contains alert configurations for this project.
If you use this setting, you must also set
spec.alertConfigurationSyncEnabledtotruefor Atlas Kubernetes Operator to modify project alert configurations.この設定を省略したり空のままにしたりすると、Atlas Kubernetes Operator はプロジェクトのアラート構成を変更しません。 プロジェクトを作成する場合、Atlas はデフォルトのプロジェクト アラート構成を適用します。
spec.alertConfigurations.eventTypeNameタイプ: string
必須
このアラート構成で説明されるアラートをトリガーするイベント。
Atlas Kubernetes Operator が受け入れる値の詳細については、MongoDB Atlas Administration API ドキュメントの「 1 つのプロジェクトに 1 つのアラート構成を作成する 」のリクエスト ボディ スキーマを参照してください。
spec.alertConfigurations.enabledタイプ: ブール値
任意
デフォルト:
falseこのアラート構成が有効になっているかどうかを示すフラグ。 省略した場合、デフォルトは
falseになります。
spec.alertConfigurations.matchersタイプ: オブジェクトの配列
条件付き
List of rules that determine whether Atlas checks an object for the alert configuration. You can filter using the matchers array if
spec.alertConfigurations.eventTypeNamespecifies an event for a host, replica set, or sharded cluster.
spec.alertConfigurations.matchers.fieldNameタイプ: string
条件付き
Atlas がチェックするターゲット オブジェクト内のパラメーターを識別する、人間が判読可能なラベル。 Atlas がアラート構成をチェックするには、パラメーターがすべてのルールに一致する必要があります。
Atlas Kubernetes Operator は、次の値を受け入れます。
CLUSTER_NAMEHOSTNAMEHOSTNAME_AND_PORTPORTREPLICA_SET_NAMESHARD_NAMETYPE_NAME
Atlas Kubernetes Operator requires this setting if you include an object in the
spec.alertConfigurations.matchersarray.
spec.alertConfigurations.matchers.operatorタイプ: string
条件付き
Comparison operator to apply when checking the current metric value against
spec.alertConfigurations.matchers.value.Atlas Kubernetes Operator は、次の値を受け入れます。
EQUALSCONTAINSSTARTS_WITHENDS_WITHNOT_EQUALSNOT_CONTAINSREGEX
Atlas Kubernetes Operator requires this setting if you include an object in the
spec.alertConfigurations.matchersarray.
spec.alertConfigurations.matchers.valueタイプ: string
条件付き
Value to match or exceed using the specified
spec.alertConfigurations.matchers.operator.Atlas Kubernetes Operator requires this setting if you include an object in the
spec.alertConfigurations.matchersarray.
spec.alertConfigurations.metricThreshold型: オブジェクト
条件付き
超えた場合にアラートをトリガーするメトリクスのしきい値。
Atlas Kubernetes Operator requires this setting when
spec.alertConfigurations.eventTypeNameisOUTSIDE_METRIC_THRESHOLD.
spec.alertConfigurations.metricThreshold.metricNameタイプ: string
条件付き
Human-readable label that identifies the metric against which Atlas checks the configured
spec.alertConfigurations.metricThreshold.threshold.Atlas Kubernetes Operator が受け入れる値の詳細については、MongoDB Atlas Administration API ドキュメントの「 1 つのプロジェクトに 1 つのアラート構成を作成する 」のリクエスト ボディ スキーマを参照してください。
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.metricThresholdobject.
spec.alertConfigurations.metricThreshold.modeタイプ: string
任意
デフォルト:
AVERAGEAtlas は現在のメトリクス値を平均として計算します。
Atlas Kubernetes Operator は
AVERAGEの値のみを受け入れます。
spec.alertConfigurations.metricThreshold.operatorタイプ: string
条件付き
現在のメトリクス値をチェックするときに適用する比較演算子。
Atlas Kubernetes Operator は、次の値を受け入れます。
GREATER_THANLESS_THAN
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.metricThresholdobject.
spec.alertConfigurations.metricThreshold.threshold型: 整数
条件付き
超えた場合にアラートをトリガーするメトリクスの値。
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.metricThresholdobject.
spec.alertConfigurations.metricThreshold.unitsタイプ: string
条件付き
量をExpressために使用される要素。 この値は、時間やストレージ容量などの要素になる可能性があります。
Atlas Kubernetes Operator は、次の値を受け入れます。
BITSBYTESDAYSGIGABITSGIGABYTESHOURSKILOBITSKILOBYTESMEGABITSMEGABYTESMILLISECONDSMINUTESPETABYTESRAWSECONDSTERABYTES
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.metricThresholdobject.
spec.alertConfigurations.notificationsタイプ: 配列
条件付き
このアラート構成で説明されているアラートについて Atlas が送信する通知を説明するリスト。
型: string
条件付き
SlackのAPIトークンを持つ単一の フィールドを含む opaque secret の名前。
passwordAtlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials Slack 経由の通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.apiTokenRef.namespace型: string
条件付き
Slack の API トークンを含む名前空間。 Slack 経由の通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.channelNameタイプ: string
条件付き
Atlas がアラート通知を送信する Slack チャンネルを識別する、人間に判読可能なラベル。
Atlas Kubernetes Operator requires this setting when you set
spec.alertConfigurations.notifications.typeNametoSLACK.
spec.alertConfigurations.notifications.datadogApiKeyRef.name型: string
条件付き
DataDog のAPIキーを持つ単一の
passwordフィールドを含むオペレーターのシークレットの名前。DataDog を介した通知が必要な場合は、この設定を指定する必要があります。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.alertConfigurations.notifications.datadogApiKeyRef.namespace型: string
条件付き
Datadog の API キーを含む名前空間。 Datadog を介した通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.datadogRegionタイプ: string
任意
デフォルト:
US使用する API URL(Uniform Resource Locator)を示す Datadog リージョン。
Atlas Kubernetes Operator は、次の値を受け入れます。
USEU
spec.alertConfigurations.notifications.delayMins型: 整数
任意
デフォルト:
0Atlas がアラート条件を検出してから最初の通知を送信するまでに待機する時間(分)。
spec.alertConfigurations.notifications.emailAddressタイプ: string
条件付き
Atlas がアラート通知を送信するメールアドレス。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoEMAIL.Atlas Kubernetes Operator doesn't require this setting to send email notifications when you set
spec.alertConfigurations.notifications.typeNameto one of the following values:GROUPORGTEAMUSERS
To send emails to one Atlas user or group of users, set the
spec.alertConfigurations.notifications.emailEnabledparameter.
spec.alertConfigurations.notifications.emailEnabledタイプ: ブール値
条件付き
Atlas がメール通知を送信するかどうかを示すフラグ。
Atlas Kubernetes Operator requires this setting when you set
spec.alertConfigurations.notifications.typeNameto one of the following values:GROUPORGTEAM
spec.alertConfigurations.notifications.intervalMin型: 整数
任意
連続する通知までの待機時間(分)。 Atlas は、未確認のアラートを確認するまで通知を送信します。 Atlas Kubernetes Operator は、
5以上の値を受け入れます。PagerDuty、VictorOps、および Opsgenie の通知では、このフィールドは使用されません。 これらの各サービス内で通知間隔を構成および管理します。
spec.alertConfigurations.notifications.microsoftTeamsWebhookUrlタイプ: string
条件付き
Atlas が Microsoft Teams 経由でこの通知を送信する必要がある Microsoft Teams WebhookUniform Resource Locator(URL)。 後で URL が無効になった場合、Atlas はプロジェクト所有者にメールを送信します。 キーが無効なままの場合、Atlas はキーを削除します。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoMICROSOFT_TEAMS.
spec.alertConfigurations.notifications.mobileNumberタイプ: string
条件付き
Atlas がアラート通知を送信する携帯電話番号。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoSMS.
spec.alertConfigurations.notifications.opsGenieApiKeyRef.name型: string
条件付き
Opsgenie のAPIキーを持つ単一の
passwordフィールドを含む opaque secret の名前。Opsgenie を介した通知が必要な場合は、この設定を指定する必要があります。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.alertConfigurations.notifications.opsGenieApiKeyRef.namespace型: string
条件付き
Opsgenie の API キーを含む名前空間。 Opsgenie を介した通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.opsGenieRegionタイプ: string
任意
デフォルト:
US使用する API Uniform Resource Locator(URL)を示す Opsgenie リージョン。
Atlas Kubernetes Operator は、次の値を受け入れます。
USEU
Atlas Kubernetes Operator applies this setting if you set
spec.alertConfigurations.notifications.typeNametoOPS_GENIE.
spec.alertConfigurations.notifications.rolesタイプ: 配列
任意
構成されたアラートを受信する 1 件以上の組織またはプロジェクト ロールを含むリスト。 このパラメーターを含めると、Atlas は、リストで指定したロールを割り当てられたユーザーにのみアラートを送信します。 このパラメーターを省略すると、Atlas は任意のロールを割り当てられたユーザーにアラートを送信します。
Atlas Kubernetes Operator は、次の値を受け入れます。
GROUP_CLUSTER_MANAGERGROUP_DATA_ACCESS_ADMINGROUP_DATA_ACCESS_READ_ONLYGROUP_DATA_ACCESS_READ_WRITEGROUP_OWNERGROUP_READ_WRITEORG_OWNERORG_MEMBERORG_GROUP_CREATORORG_BILLING_ADMINORG_READ_ONLY
Atlas Kubernetes Operator applies this setting when you set
spec.alertConfigurations.notifications.typeNameto one of the following values:GROUPORG
spec.alertConfigurations.notifications.serviceKeyRef.name型: string
条件付き
PagerDuty のAPIキーを持つ単一の フィールドを含む opaque secret の名前。
passwordPagerDuty による通知が必要な場合は、この設定を指定する必要があります。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.alertConfigurations.notifications.serviceKeyRef.namespace型: string
条件付き
PagerDuty の API キーを含む名前空間。 PagerDuty による通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.smsEnabledタイプ: ブール値
条件付き
Atlas がテキスト メッセージ通知を送信するかどうかを示すフラグ。
Atlas Kubernetes Operator requires this setting when you set
spec.alertConfigurations.notifications.typeNameto one of the following values:GROUPORGTEAM
spec.alertConfigurations.notifications.teamIdタイプ: string
条件付き
1 つの チームを識別する一意な 24 桁の 16stringAtlas 進数の 。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoTEAM.
spec.alertConfigurations.notifications.teamNameタイプ: string
条件付き
この通知を受信する Atlas チームの名前。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoTEAM.
spec.alertConfigurations.notifications.typeNameタイプ: string
条件付き
Human-readable label that displays the alert notification type. This setting is required if you specify a value for the
spec.alertConfigurations.notificationssetting. Atlas supports the following values:DATADOGEMAILOPS-GENIEORGPAGER_DUTYPROMETHEUSSLACKSMSTEAMUSERVICTOR_OPSWEBHOOK
spec.alertConfigurations.notifications.usernameタイプ: string
条件付き
Atlas が通知を送信するユーザーの Atlas ユーザー名。 アラート構成を所有するプロジェクトに属する Atlas ユーザーのみを指定します。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoUSER.
spec.alertConfigurations.notifications.victorOpsSecretRef.name型: string
条件付き
Splunc オンコールのAPIキーを持つ単一の フィールドを含む opaque secret の名前。
passwordSplunk On-Call による通知が必要な場合は、この設定を指定する必要があります。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.alertConfigurations.notifications.victorOpsSecretRef.namespace型: string
条件付き
Splunk On-呼び出し用の API キーを含む名前空間。 Splunk On-Call による通知が必要な場合は、この設定を指定する必要があります。
spec.alertConfigurations.notifications.victorOpsRoutingKeyタイプ: string
条件付き
Atlas が Splunk On-Call にアラート通知を送信するために必要なルーティング キー。 後でキーが無効になった場合、Atlas はプロジェクト所有者にメールを送信します。 キーが無効なままの場合、Atlas はキーを削除します。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoVICTOR_OPS.
spec.alertConfigurations.notifications.webhookSecretタイプ: string
任意
Webhook ベースのアラートの認証シークレット。
Atlas Kubernetes Operator applies this setting if you set
spec.alertConfigurations.notifications.typeNametoWEBHOOK.
spec.alertConfigurations.notifications.webhookUrlタイプ: string
条件付き
Webhook URL を示す string。
Atlas Kubernetes Operator requires this setting if you set
spec.alertConfigurations.notifications.typeNametoWEBHOOK.
spec.alertConfigurations.severityOverrideタイプ: string
条件付き
Overrides the Atlas-assigned default severity level for a project alert.
Atlas Kubernetes Operator は、次の値を受け入れます。
CRITICALERRORWARNINGINFO
spec.alertConfigurations.threshold型: オブジェクト
条件付き
超えたときにアラートをトリガーする制限。
Atlas Kubernetes Operator applies this setting if you set
spec.alertConfigurations.eventTypeNameto a value other thanOUTSIDE_METRIC_THRESHOLD.
spec.alertConfigurations.threshold.operatorタイプ: string
条件付き
Atlas が現在のメトリクス値をチェックするときに適用する比較演算子。
Atlas Kubernetes Operator は、次の値を受け入れます。
GREATER_THANLESS_THAN
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.thresholdobject.
spec.alertConfigurations.threshold.threshold型: 整数
条件付き
超えた場合にアラートをトリガーするメトリクスの値。
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.thresholdobject.
spec.alertConfigurations.threshold.unitsタイプ: string
条件付き
量を表す要素。 時間、ストレージ容量などの要素を指定できます。
Atlas Kubernetes Operator は、次の値を受け入れます。
BITSBYTESDAYSGIGABITSGIGABYTESHOURSKILOBITSKILOBYTESMEGABITSMEGABYTESMILLISECONDSMINUTESPETABYTESRAWSECONDSTERABYTES
Atlas Kubernetes Operator requires this setting if you include the
spec.alertConfigurations.thresholdobject.
spec.alertConfigurationSyncEnabledタイプ: ブール値
任意
デフォルト:
falseFlag that indicates whether Atlas Kubernetes Operator applies the project alert settings defined in
spec.alertConfigurations. If you omit or set to this parameter tofalse, Atlas Kubernetes Operator doesn't synchronize the project's alert configurations with the ones that you define in theAtlasProjectcustom resource.For information on how this setting interacts with
spec.withDefaultAlertsSettings, see the Considerations.
spec.auditing.auditAuthorizationSuccessタイプ: ブール値
任意
デフォルト:
falseFlag that indicates whether to direct the auditing system to capture successful authentication attempts for audit filters using the
"atype" : "authCheck"auditing event. To set this parameter totrue, you must setspec.auditing.enabledtotrue. To learn more, see auditAuthorizationSuccess.警告: auditAuthorizationSuccessを有効にすると、クラスターのパフォーマンスに重大な影響を与える可能性があります。 このオプションを有効にする場合は注意が必要です。
spec.auditing.auditFilter型: string
任意
JSON-formatted auditing filter. You might need to escape the JSON string to remove characters that could prevent parsing, such as single or double-quotes. To specify a value for this setting, you must set
spec.auditing.enabledtotrue.監査フィルターの例を表示するには、「 監査フィルターの例」を参照してください。 MongoDB 監査フィルターの構成の詳細については、「カスタム監査フィルターを構成する 」を参照してください。
spec.auditing.enabledタイプ: ブール値
条件付き
デフォルト:
falseFlag that indicates whether to enable auditing for the project. To specify a value for
spec.auditing.auditFilter, or to setspec.auditing.auditAuthorizationSuccesstotrue, you must specify this setting. To learn more, see Enable Audit Logs.
spec.backupCompliancePolicyRef型: オブジェクト
条件付き
カスタム リソース を参照する opaque secret
AtlasBackupCompliancePolicyの名前と名前空間を含むオブジェクト。バックアップ コンプライアンス ポリシーを有効にする場合は、このパラメーターを指定する必要があります。
spec.backupCompliancePolicyRef.name型: string
条件付き
カスタム
AtlasBackupCompliancePolicyリソース を参照する opaque secret の名前。バックアップ コンプライアンス ポリシーを有効にする場合は、このパラメーターを指定する必要があります。
spec.backupCompliancePolicyRef.namespace型: オブジェクト
条件付き
カスタム リソース を参照する
AtlasBackupCompliancePolicyopaque secret の名前空間。バックアップ コンプライアンス ポリシーを有効にする場合は、このパラメーターを指定する必要があります。
spec.connectionSecretRef.name型: string
任意
Atlas Kubernetes Operator が
passwordAtlas への接続に使用する組織IDとAPIキーを持つ単一の フィールドを含む opaque シークレットの名前。指定しない場合、Atlas Kubernetes Operator はデフォルトのglobalシークレットを使用します。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials デフォルトでは 、Atlas Kubernetes Operator は カスタム
AtlasProjectリソースと同じ名前空間に接続シークレットを保持します。シークレットを別の名前空間に保存するには、spec.connectionSecretRef.namespaceパラメータを指定します。
spec.connectionSecretRef.namespace型: string
任意
Atlas Kubernetes Operator が Atlas に接続するために使用する組織IDとAPIキーのシークレットを含む名前空間。指定しない場合、Atlas Kubernetes Operator は
AtlasProjectカスタム リソースと同じ名前空間に接続シークレットを保持します。
spec.cloudProviderAccessRolesタイプ: 配列
Deprecated. Use
spec.cloudProviderIntegrationsinstead.統合クラウドプロバイダーのアクセス設定を含むリスト。
spec.cloudProviderAccessRoles.iamAssumedRoleArn型: string
Deprecated. Use
spec.cloudProviderIntegrations.iamAssumedRoleArninstead.が引き受ける IAM アクセス ロールを識別する一意のAmazon Web Services ARNAtlas 。統合クラウドプロバイダー アクセスを設定する場合は、この設定を指定する必要があります。
spec.cloudProviderAccessRoles.providerName型: string
Deprecated. Use
spec.cloudProviderIntegrations.providerNameinstead.Atlas が引き受けるアクセス ロールのクラウドプロバイダー。 Atlas Kubernetes Operator は、統合クラウドプロバイダー アクセスのための
AWSをサポートしています。 統合クラウドプロバイダー アクセスを設定する場合は、この設定を指定する必要があります。
spec.cloudProviderIntegrationsタイプ: 配列
任意
統合されたクラウドプロバイダー統合設定を含むリスト。
spec.cloudProviderIntegrations.iamAssumedRoleArn型: string
条件付き
が引き受ける IAM アクセス ロールを識別する一意のAmazon Web Services ARNAtlas 。統合クラウドプロバイダー統合を設定する場合は、この設定を指定する必要があります。
spec.cloudProviderIntegrations.providerName型: string
条件付き
Atlas が引き受けるアクセス ロールのクラウドプロバイダー。 Atlas Kubernetes Operator は、統合クラウドプロバイダー統合のための
AWSをサポートしています。 統合クラウドプロバイダー統合を設定する場合は、この設定を指定する必要があります。
spec.customRoles型: オブジェクト
任意
非推奨
重要
Atlas Kubernetes Operator
2.6の場合、このパラメータは非推奨です。移行ガイド に従って、 AtlasPrivateEndpoint カスタム リソース に移行します。カスタムロール仕様を含むオブジェクト。
spec.encryptionAtRestタイプ: 配列
任意
プロジェクトのカスタマー マネージド キーを使用した保管時の暗号化の構成を含むリスト。
spec.encryptionAtRest.awsKms型: オブジェクト
任意
プロジェクトの カスタマー マネージドAmazon Web ServicesKMS キーを使用した保管時の暗号化に使用するための設定を含むリスト。
spec.encryptionAtRest.enabledタイプ: ブール値
任意
このプロジェクトが AWS KMS を使用して保管中のデータを暗号化しているかどうかを示すフラグ。Amazon Web Services KMS を使用して保管時の暗号化を有効にするには、このパラメーターを
trueに設定します。Amazon Web ServicesKMS を使用して保管時の暗号化を無効にするには、このパラメーターをfalseに設定します。Amazon Web Services KMSで保管時の暗号化を無効にすると、Atlas Kubernetes Operator は構成詳細を削除します。
spec.encryptionAtRest.awsKms.region型: string
任意
Label that indicates the AWS region where the customer master key exists.
spec.encryptionAtRest.awsKms.secretRef.name型: string
任意
Amazon Web Services の認証情報を含む不透明な シークレット の名前。
Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.encryptionAtRest.awsKms.secretRef.namespace型: string
任意
Amazon Web Servicesの認証情報を含む名前空間。指定しない場合、このパラメータはデフォルトでは
AtlasProjectカスタム リソースの名前空間になります。
spec.encryptionAtRest.azureKeyVault型: オブジェクト
任意
プロジェクトの カスタマー マネージド キーを使用した保管時の暗号化に Azure Key Vault を使用するための構成を含むリスト。
spec.encryptionAtRest.azureKeyVault.azureEnvironment型: string
任意
Azure アカウントの認証情報が存在する Azure 配置ロケーション。有効な値は
AZURE、AZURE_CHINAとAZURE_GERMANYです。
spec.encryptionAtRest.azureKeyVault.enabledタイプ: ブール値
任意
このプロジェクトがAzureキーヴォールトを使用してAzureキーを使用しているかどうかを示すフラグ。Atlas Kubernetes Operator は構成の詳細を削除します。
spec.encryptionAtRest.azureKeyVault.resourceGroupName型: string
任意
あなたの Azure Key Vault が含まれている Azure リソース グループを識別するラベル。Azure は、リソース グループの [詳細] ページにリソース グループ名を表示します。
spec.encryptionAtRest.azureKeyVault.secretRef.name型: string
任意
Azure 認証情報を含むオペーク シークレット の名前。
Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.encryptionAtRest.azureKeyVault.secretRef.namespace型: string
任意
Azure認証情報を含む名前空間。指定しない場合、このパラメータはデフォルトでは
AtlasProjectカスタム リソースの名前空間になります。
spec.encryptionAtRest.azureKeyVault.tenantID型: string
任意
Azureサブスクリプション内のAzure 36Active Directory テナントを識別する一意の 桁の 16 進数文字列。Azure は、テナント プロパティ ページにテナントIDを表示します。
spec.encryptionAtRest.googleCloudKms型: オブジェクト
任意
プロジェクトの カスタマーGoogle Cloud PlatformKMS マネージド キーを使用した保管時の暗号化に使用するための構成を含むリスト。
spec.encryptionAtRest.googleCloudKms.enabled`型: string
任意
このプロジェクトが Google Cloud KMS を使用して保管中のデータを暗号化しているかどうかを示すフラグ。Google Cloud Platform KMS で保管時の暗号化を有効にするには、このパラメータを
trueに設定します。Google Cloud Platform の KMS を使用して保管時の暗号化を無効にするには、このパラメーターをfalseに設定します。Google Cloud Platform KMS を使用して保管時の暗号化を無効にすると、Atlas Kubernetes Operator は構成の詳細を削除します。
spec.encryptionAtRest.googleCloudKms.secretRef.name型: string
任意
Google Cloud Platform の認証情報を含むオペレーターのシークレットの名前。
Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials
spec.encryptionAtRest.googleCloudKms.secretRef.namespace型: string
任意
Google Cloud Platformの認証情報を含む名前空間。 指定されていない場合、このパラメータはデフォルトで
AtlasProjectカスタム リソースの名前空間になります。
spec.integrationsタイプ: 配列
任意
非推奨
重要
Atlas Kubernetes Operator
2.9の場合、このパラメータは非推奨です。移行ガイドに従って、AtlasThirdPartyIntegration カスタムリソースに移行します。サードパーティ統合設定を含むリスト。
spec.maintenanceWindow型: オブジェクト
任意
メンテナンスウィンドウの設定を含むリスト。 次の本体パラメータを指定できます。
名前タイプ必要性説明dayOfWeek
数値
必須
メンテナンスウィンドを開始する曜日(1 から始まる整数)。
Day of Week整数Sunday
1
Monday
2
Tuesday
3
Wednesday
4
Thursday
5
Friday
6
Saturday
7
hourOfDay
数値
必須
メンテナンスウィンドウを開始する時刻。 このパラメーターは 24 時間制を使用します。ここでは、真夜中は0 、正午は12です。
autoDeferOnceEnabled
ブール値
任意
すべてのメンテナンスWindowsがトリガーされるかどうかを示すフラグ。
重要
メンテナンスウィンドウに関する考慮事項
- 至急の整備アクティビティ
- セキュリティパッチのような至急の整備アクティビティは、選択したウィンドウを待つことはできません。 Atlas は必要に応じてこれらのメンテナンス アクティビティを開始します。
- 継続的なメンテナンス操作
- クラスターのメンテナンスがスケジュールされると、現在のメンテナンス作業が完了するまでメンテナンスウィンドウを変更できません。
- メンテナンスにはレプリカセットの選択が必要
- Atlas は、 MongoDB マニュアルに記載されているメンテナンス手順と同じ方法でメンテナンスを実行します。 この手順では、レプリカセットごとに、メンテナンスウィンドウ中に少なくとも 1 回のレプリカセット選挙が必要です。
- メンテナンスは可能な限り時刻に近い時間に開始
- メンテナンスは常に可能な限り予定時刻に近い時間に開始されますが、進行中のクラスターアップデートや予期しないシステム問題により、開始時間が遅れる可能性があります。
spec.maintenanceWindow.deferタイプ: ブール値
条件付き
Flag that indicates whether Atlas should defer scheduled maintenance. You must schedule maintenance before you can successfully defer maintenance.
spec.maintenanceWindow.deferandspec.maintenanceWindow.startASAPcan't both be set totrueat the same time.重要
While
spec.maintenanceWindow.deferis set totrue, Atlas Kubernetes Operator defers scheduled maintenance every time you apply changes to theAtlasProjectcustom resource. If you setspec.maintenanceWindow.defertotrue, you should changespec.maintenanceWindow.defertofalseafter you apply changes.
spec.maintenanceWindow.dayOfWeekタイプ: 数値
条件付き
メンテナンスウィンドが開始される曜日を表す 1 から始まる整数。 次の表を使用して、各日に対応する整数を見つけます。
Day of Week整数Sunday
1
Monday
2
Tuesday
3
Wednesday
4
Thursday
5
Friday
6
Saturday
7
プロジェクトのメンテナンスウィンドウを設定する場合は、この設定を指定する必要があります。
spec.maintenanceWindow.hourOfDayタイプ: 数値
条件付き
メンテナンス ウィンドウが開始される時刻を 24 時間制で表す 0 から始まる整数。 真夜中には
0を使用し、正午には12を使用します。 プロジェクトのメンテナンスウィンドウを設定する場合は、この設定を指定する必要があります。
spec.maintenanceWindow.startASAPタイプ: ブール値
条件付き
Flag that indicates whether Atlas should immediately start maintenance.
spec.maintenanceWindow.deferandspec.maintenanceWindow.startASAPcan't both be set totrueat the same time.重要
While
spec.maintenanceWindow.startASAPis set totrue, Atlas Kubernetes Operator starts maintenance every time you apply changes to theAtlasProjectcustom resource. If you setspec.maintenanceWindow.startASAPtotrue, you should changespec.maintenanceWindow.startASAPtofalseafter you apply changes.
spec.networkPeersタイプ: 配列
任意
非推奨
重要
Atlas Kubernetes Operator
2.8の場合、このパラメータは非推奨です。移行ガイド に従って、 AtlasNetworkPeering および AtlasNetworkContainer のカスタム リソースに移行します。プロジェクトのネットワークピアリング構成が格納されたリスト。
spec.regionUsageRestrictions型: string
任意
Atlas for Government のみのプロジェクトのリージョンを指定します。次のいずれかの値を指定できます。
NONE:プロジェクトにはリージョン使用の制限はありません。これはデフォルト値です。GOV_REGIONS_ONLY: 指定した政府クラウドリージョンにプロジェクトを制限します。COMMERCIAL_FEDRAMP_REGIONS_ONLY:プロジェクトがAmazon Web Services FedRamp Moderate 標準リージョンに制限されていることを示します。
spec.projectIpAccessListタイプ: 配列
必須
非推奨
プロジェクト内の Atlas クラスターへのネットワークアクセスを許可する IP アクセス リスト。 次の本体パラメータを指定できます。
Parameterタイプ必要性説明awsSecurityGroup
string
条件付き
アクセス リストに追加するAmazon Web Servicesセキュリティ グループの一意の識別子。
アクセス リスト エントリには、1 つのawsSecurityGroup 、1 つのcidrBlock 、または 1 つのipAddressのみを含めることができます。
You must configure VPC peering for your project before you can add an AWS security group to an access list.
cidrBlock
string
条件付き
アクセス リストに追加するCIDR表記の IP アドレスの範囲。
アクセス リスト エントリには、1 つのawsSecurityGroup 、1 つのcidrBlock 、または 1 つのipAddressのみを含めることができます。
comment
string
任意
アクセス リスト エントリに関連付けられたコメント。
deleteAfterDate
date
任意
Timestamp in ISO 8601 date and time format in UTC after which Atlas removes the entry from the access list. The specified date must be in the future and within one week of the time you make the API request.
重要: Amazon Web Servicesのセキュリティ グループを一時的なアクセスリスト エントリとして設定することはできません。
ISO 8601 タイムゾーン指定子を含めて、指定されたタイムゾーンのローカルタイムに有効期限が発生するようにします。
ipAddress
string
条件付き
アクセス リストに追加する単一の IP アドレス。 awsSecurityGroupおよびcidrBlockと相互に排他的です。
アクセス リスト エントリには、1 つのawsSecurityGroup 、1 つのcidrBlock 、または 1 つのipAddressのみを含めることができます。
spec.settings.isCollectDatabaseSpecificsStatisticsEnabledタイプ: ブール値
任意
プロジェクトでクラスター メトリクス内のデータベース統計のコレクションが有効になっているかどうかを示すフラグ。
spec.settings.isDataExplorerEnabledタイプ: ブール値
任意
プロジェクトでデータ エクスプローラーが有効になっているかどうかを示すフラグ。
spec.settings.isExtendedStorageSizesEnabledタイプ: ブール値
任意
Flag that indicates whether to enable extended storage sizes for the specified project. To learn more about enabling extended storage, see Manage Project Settings.
spec.settings.isPerformanceAdvisorEnabledタイプ: ブール値
任意
Flag that indicates whether your project has Performance Advisor enabled.
spec.settings.isRealtimePerformancePanelEnabledタイプ: ブール値
任意
Flag that indicates whether your project has Realtime Performance Panel enabled.
spec.settings.isSchemaAdvisorEnabledタイプ: ブール値
任意
プロジェクトでSchema アドバイザーが有効になっているかどうかを示すフラグ。
spec.privateEndpointsタイプ: 配列
任意
非推奨
重要
Atlas Kubernetes Operator
2.6の場合、このパラメータは非推奨です。移行ガイド に従って、 AtlasPrivateEndpoint カスタム リソース に移行します。プロジェクトのプライベートエンドポイント構成が格納されたリスト。
spec.teams型: オブジェクト
任意
チームの仕様を含むオブジェクト。 詳しくは、「チームの構成 」を参照してください。
spec.teams.teamRef.name型: string
条件付き
フィールドの
AtlasTeammetadata.nameカスタム リソースからの、人間が判読可能なラベル。このプロジェクトにチームを割り当てる 場合は、この設定を指定する必要があります。
spec.teams.teamRef.namespace型: string
条件付き
default以外の場合は、AtlasTeamのカスタム リソースで指定される名前空間。
spec.teams.teamRef.roles型: string
条件付き
Atlas User Roles that a team uses for this project. If you want to assign a team to this project, you must specify this setting.
spec.withDefaultAlertsSettingsタイプ: ブール値
任意
デフォルト:
trueFlag that indicates whether Atlas Kubernetes Operator creates a project with the default alert configurations. If omitted, defaults to
true.If you use this setting, you must also set
spec.alertConfigurationSyncEnabledtotruefor Atlas Kubernetes Operator to modify project alert configurations.プロジェクトを作成するときにこのパラメータを
falseに設定すると、Atlas はデフォルトのアラート構成をプロジェクトに追加しません。この設定は既存のプロジェクトには影響しません。
For information on how this setting interacts with
spec.alertConfigurationSyncEnabled, see the Considerations.
spec.x509CertRef.name型: string
任意
kubernetes.io/tlsX.509 証明書の シークレットの名前。Atlas Kubernetes Operator
atlas.mongodb.com/type=credentialsは、不要な シークレット の監視を回避するために、ラベル のシークレットのみを監視します。次の例ではシークレットにラベルを付けます。
kubectl label secret the-user-password atlas.mongodb.com/type=credentials