DBCluster 自訂資源定義

規格結構定義

DBClusterSpec 會定義 DBCluster 的所需狀態。

DBCluster:
  metadata:
    name: string
  spec:
    availability:
      autoFailoverTriggerThreshold: integer
      autoHealTriggerThreshold: integer
      enableAutoFailover: boolean
      enableStandbyAsReadReplica: boolean
      enableAutoHeal: boolean
      healthcheckPeriodSeconds: integer
      replayReplicationSlotsOnStandbys: boolean
      numberOfStandbys: integer

    databaseVersion: string
    loadBalancerPort: integer
    readOnlyPort: integer
    primarySpec:
      adminUser:
        passwordRef:
          name: string
      dbLoadBalancerOptions:
        gcp:
          loadBalancerIP: string
          loadBalancerType: string
          loadBalancerInterface: string
        onprem:
          loadBalancerIP: string
          loadBalancerType: string
          loadBalancerInterface: string
      features:
        columnarSpillToDisk:
          cacheSize: string
          localVolume:
            path: string
        ultraFastCache:
          cacheSize: string
          localVolume:
            path: string
        googleMLExtension:
          enabled: boolean
          config:
            vertexAIKeyRef: string
            vertexAIRegion: string
      monitorPort: integer
      parameters: object
      port: integer
      resources:
        cpu: integer or string
        memory: string or integer
        limits:
          memory: string or integer
        disks:
        - name: string
          path: string

    tls:
      certSecret:
        name: string

欄位

類型
必要或選填

 

說明
availability
object
選填
可用性包含 DBCluster 高可用性 (HA) 功能的可調整設定。
availability.autoFailoverTriggerThreshold
integer
選填
AutoFailoverTriggerThreshold 是主要執行個體連續健康狀態檢查失敗的次數,達到這個次數就會觸發自動容錯移轉。如果設為 0,系統會使用預設值。使用 EnableAutoFailover 旗標停用自動容錯移轉。
availability.autoHealTriggerThreshold
integer
選填
AutoHealTriggerThreshold 是連續待命執行個體健康狀態檢查失敗的次數,達到這個次數就會啟動自動修復。如要停用自動修復功能,請使用 EnableAutoHeal 旗標。預設值為 5。
availability.enableAutoFailover
boolean
選填
EnableAutoFailover 表示如果 DBCluster 偵測到主要執行個體運作狀況不佳,而待命執行個體運作狀況良好,就會觸發容錯移轉。如果設為 true,系統會啟用自動容錯移轉。如果設為 false,即使系統偵測到主要執行個體處於非健康狀態,也不會觸發自動容錯移轉。預設值為 true。啟用這項功能後,如果系統偵測到主要執行個體在指定閾值內處於非健康狀態,就會觸發容錯移轉。這項功能僅適用於 HA DBCluster,且備援資料庫必須正常運作。
availability.enableStandbyAsReadReplica
boolean
選填
EnableStandbyAsReadReplica 決定備用裝置是否可接受使用者查詢。如設為 true,系統會建立新端點,以啟用備援的唯讀存取權。
availability.enableAutoHeal
boolean
選填
EnableAutoHeal 表示如果偵測到待命執行個體健康狀態不良,這個 DBCluster 會觸發自動修復。如果設為 true,則會啟用自動修復功能。如果設為 false,即使系統偵測到待命執行個體健康狀態不良,也不會觸發自動修復。預設值為 true。啟用後,如果系統偵測到待命執行個體超過指定門檻,就會觸發自動修復。這項功能僅適用於 HA DBCluster。
availability.healthcheckPeriodSeconds
integer
選填
HealthcheckPeriodSeconds 是健康狀態檢查探測器等待的秒數,之後會再次檢查主要和待命執行個體的健康狀態,並據此更新狀態。
availability.replayReplicationSlotsOnStandbys
boolean
選填
將 replayReplicationSlotsOnStandbys 設為 true,即可讓 HA 待命伺服器從 WAL 檔案重播複製運算單元。我們也建議在上游複寫資源中啟用 LogReplicationSlot 欄位,以便在 WAL 檔案中記錄對應的複寫位置。這項設定有助於確認,如果主要 DBCluster 發生高可用性容錯移轉或切換,新的高可用性主要執行個體會保留這些複寫位置尚未使用的 WAL 檔案。請注意,修改這個欄位會導致所有 HA 待機裝置重新啟動。
availability.numberOfStandbys
integer
選填
NumberOfStandbys 是指應為這個 DBCluster 建立的待機資料庫數量。如果設為大於 0 的值,叢集就會啟用高可用性,系統也會建立指定數量的待命執行個體。待命執行個體數量上限為 5 個。如要查看這個 DBCluster 的 HA 目前狀態,請查看 DBCluster 狀態下的 HAReady 條件。如果 HAReady 為 true,表示設定已完成並準備就緒。如果設為 0,叢集會停用高可用性,並刪除所有現有的待命執行個體。支援 0 到 5 之間的任何數字 (含 0 和 5)。預設值為 0。
databaseVersion
string
必填
DatabaseVersion 是叢集的所需資料庫版本,例如「18.1.0」。這個欄位為必填欄位。這個版本會套用至資料庫叢集的所有執行個體。
loadBalancerPort
integer
選填
LoadBalancerPort 指定負載平衡器的前端連接埠。如未指定,則預設為 primarySpec.port (如有指定),否則為 5432。
readOnlyPort
integer
選填
ReadOnlyPort 會在 availability.enableStandbyAsReadReplica 為 true 時,指定唯讀端點的連接埠。如未指定,預設值為 primarySpec.port + 1,如果兩者不同,則為 max(loadBalancerPort, primarySpec.port) + 1。
primarySpec
object
必填
PrimarySpec 包含資料庫叢集主要執行個體的規格。主要執行個體包含運算和儲存資源,可為資料庫叢集的讀寫端點提供服務。
primarySpec.adminUser
object
必填
AdminUser 代表管理員使用者規格。這是控制平面建立的初始資料庫使用者。其他資料庫使用者則由使用者直接管理。這個欄位也可以用來重設初始使用者的密碼。
primarySpec.adminUser.passwordRef
object
必填
PasswordRef 是密碼的名稱,內含管理員使用者的密碼。在初始佈建或密碼重設期間,系統會使用這個值將管理員使用者的密碼設為該密碼。密鑰必須與資料庫叢集位於相同專案。密鑰名稱必須符合以下模式:db-pw-。此外,密碼的鍵 (位於密鑰內) 必須與資料庫叢集名稱相同。
primarySpec.adminUser.passwordRef.name
string
必填
參照對象的名稱。
primarySpec.dbLoadBalancerOptions
object
選填
使用者可透過 DBLoadBalancerOptions 提供 Load B 的詳細資料。
primarySpec.dbLoadBalancerOptions.gcp
object
選填
包含 LoadBalancer 的 Google Cloud 專屬屬性。
primarySpec.dbLoadBalancerOptions.gcp.loadBalancerIP
string
選填
LoadBalancerIP 是靜態 IP 位址。詳情請參閱「設定靜態外部 IP 位址」。
primarySpec.dbLoadBalancerOptions.gcp.loadBalancerType
string
選填
LoadBalancer 可以是內部或外部。
primarySpec.dbLoadBalancerOptions.gcp.loadBalancerInterface
string
選填
LoadBalancerInterface 是 LoadBalancer 要使用的網路介面。
primarySpec.dbLoadBalancerOptions.onprem
object
選填
包含 LoadBalancer 的地端部署屬性。
primarySpec.dbLoadBalancerOptions.onprem.loadBalancerIP
string
選填
LoadBalancerIP 是靜態 IP 位址。
primarySpec.dbLoadBalancerOptions.onprem.loadBalancerType
string
選填
LoadBalancer 可以是內部或外部。
primarySpec.dbLoadBalancerOptions.onprem.loadBalancerInterface
string
選填
LoadBalancerInterface 是 LoadBalancer 要使用的網路介面。
primarySpec.features
object
選填
功能規格。
primarySpec.features.columnarSpillToDisk
object
選填
溢出至磁碟的資料欄規格。
primarySpec.features.columnarSpillToDisk.cacheSize
string
選填
資料欄溢出至磁碟的快取大小。
primarySpec.features.columnarSpillToDisk.localVolume
object
選填
本機磁碟區設定。
primarySpec.features.columnarSpillToDisk.localVolume.path
string
選填
本機目錄的路徑。
primarySpec.features.ultraFastCache
object
選填
極速快取規格。
primarySpec.features.ultraFastCache.cacheSize
string
選填
極速快取的大小。
primarySpec.features.ultraFastCache.localVolume
object
選填
極速快取的本機磁碟區設定。
primarySpec.features.ultraFastCache.localVolume.path
string
選填
極速快取的本機目錄路徑。
primarySpec.features.googleMLExtension
object
選填
Google 機器學習 (ML) 整合擴充功能 (google_ml_integration) 的規格,可啟用 AI 功能並與遠端模型整合。詳情請參閱 AlloyDB AI 總覽。
primarySpec.features.googleMLExtension.config
object
選填
Google 機器學習 (ML) 整合擴充功能設定。
primarySpec.features.googleMLExtension.config.vertexAIKeyRef
string
選填
Gemini Enterprise Agent Platform 密鑰的參照。
primarySpec.features.googleMLExtension.config.vertexAIRegion
string
選填
Gemini Enterprise Agent Platform 的區域。
primarySpec.features.googleMLExtension.enabled
boolean
必填
啟用 Google ML 擴充功能。
primarySpec.monitorPort
integer
選填
MonitorPort 是監控代理程式監聽的通訊埠號碼。
primarySpec.parameters
object
選填
使用 parameters 為資料庫叢集設定資料庫引擎標記和執行階段設定。每個項目都指定為鍵值字串組合,其中鍵是引擎參數名稱,值則以引號括住,例如 work_mem: "64MB"。
primarySpec.port
integer
選填
Port 是資料庫監聽的通訊埠編號。
primarySpec.resources
object
必填
資料庫程序的資源規格。當資源內的任何欄位發生變更時,運算子會使用新的資源規格重新啟動資料庫執行個體。
primarySpec.resources.cpu
integer or string
必填
分配給資料庫程序的 CPU 數量。
primarySpec.resources.disks
object
必填
分配給資料庫程序的磁碟規格。
primarySpec.resources.disks.name
string
必填
磁碟名稱。這是必填欄位。允許的值為:DataDisk 和 ObsDisk。
primarySpec.resources.disks.path
string
必填
磁碟在檔案系統中的掛接路徑
primarySpec.resources.limits
object
選填
資料庫程序的資源限制。
primarySpec.resources.limits.memory
string or integer
選填
分配給資料庫程序的最大記憶體量。
primarySpec.resources.memory
string or integer
必填
分配給資料庫程序的記憶體量。
tls
object
選填
TLS 是叢集所需的伺服器憑證設定。根據預設,這個欄位是空白的,系統會為叢集產生新的自行簽署 CA 和葉子憑證。
tls.certSecret
object
選填
CertSecret 會參照相同命名空間中的憑證密鑰。密碼必須包含 ca.crt (CA 憑證)、tls.key (伺服器私密金鑰) 和 tls.crt (伺服器葉節點憑證) 項目。這個密碼可用於設定資料庫叢集內資料庫執行個體的 TLS 設定。
tls.certSecret.name
string
選填
參照對象的名稱。

狀態結構定義

DBClusterStatus 定義 DBCluster 的觀察狀態。

conditions:
- lastTransitionTime: string
  message: string
  observedGeneration: integer
  reason: string
  status: string
  type: string
criticalIncidents:
- code: string
  createTime: string
  message: string
  messageTemplateParams: object
  resource:
    component: string
    location:
      cluster: string
      group: string
      kind: string
      name: string
      namespace: string
      version: string
  stackTrace:
  - component: string
    message: string
  transientUntil: string
latestFailoverStatus:
  failoverName: string
  status:
    conditions:
    - lastTransitionTime: string
      message: string
      observedGeneration: integer
      reason: string
      status: string
      type: string
    createTime: string
    criticalIncidents:
    - code: string
      createTime: string
      message: string
      messageTemplateParams: object
      resource:
        component: string
        location:
          cluster: string
          group: string
          kind: string
          name: string
          namespace: string
          version: string
      stackTrace:
      - component: string
        message: string
      transientUntil: string
  endTime: string
  internal:
    attempt: integer
    lastPhaseChangeTime: string
    newPrimary: string
    newPrimaryZone: string
    oldPrimary: string
    phase: string
  observedGeneration: integer
  reconciled: boolean
  startTime: string
  state: string
observedGeneration: integer
phase: string
primary:
  allocatedResources:
    cpu: integer or string
    memory: integer or string
  conditions:
  - lastTransitionTime: string
    message: string
    observedGeneration: integer
    reason: string
    status: string
    type: string
  endpoint: string
  endpoints:
  - name: string
    value: string
  monitorPort: integer
  parameters: object
  phase: string
  port: integer
  resources:
    cpu: integer or string
    memory: string or integer
    limits:
      memory: string or integer
    disks:
    - name: string
      path: string
  url: string
reconciled: boolean

欄位

類型
必要或選填

 

說明
conditions
list (object)
選填
條件代表實體目前狀態的最新可用觀察結果。
conditions[]
object
選填
條件包含這個 API 資源目前狀態某個層面的詳細資料。
conditions[].lastTransitionTime
string
必填
lastTransitionTime 是指條件最近一次從一個狀態轉變為另一個狀態的時間,也就是底層條件變更時。如果不知道基礎條件的變更時間,請使用 API 欄位的變更時間。
conditions[].message
string
必填
message 是使用者可理解的訊息,指出轉換的詳細資料。這個值可以是空白字串。
conditions[].observedGeneration
integer
選填
observedGeneration 代表條件設定依據的 .metadata.generation。舉例來說,如果 .metadata.generation 為 12,而 .status.conditions[x].observedGeneration 為 9,則該條件與執行個體的目前狀態不符。
conditions[].reason
string
必填
reason 包含程式化 ID,指出條件上次轉換的原因。特定條件類型的產生者可以定義這個欄位的預期值和意義,以及這些值是否視為保證的 API。值必須是 CamelCase 字串。這個欄位可能不得為空。
conditions[].status
string
必填
條件的狀態,可以是 True、False 或 Unknown。
conditions[].type
string
必填
條件類型,格式為 CamelCase 或 foo.example.com/CamelCase。許多 .condition.type 值在 Available 等資源中保持一致,但由於任意條件可能很有用 (請參閱 .node.status.conditions),因此解除衝突的能力非常重要。與其相符的規則運算式為 (dns1123SubdomainFmt/)?(qualifiedNameFmt)。
criticalIncidents
object
選填
CriticalIncidents 是所有未解決重大事件的平面清單。
criticalIncidents[]
object
選填
CriticalIncident 包含目前重大事件的所有資訊。
criticalIncidents[].code
string
必填
Code 是這項特定錯誤的錯誤代碼。錯誤代碼為 DBSE+數字字串,例如「DBSE1012」。
criticalIncidents[].createTime
string
必填
CreateTime 是指在來源建立這個事件的時間戳記。
criticalIncidents[].message
string
選填
訊息會說明發生的事件或錯誤。
criticalIncidents[].messageTemplateParams
object
選填
MessageTemplateParams 包含鍵/值組合,用於在使用者介面中產生容易使用的資料驅動型 Message 版本。
criticalIncidents[].resource
object
必填
這個資源包含回報事件的資料庫服務元件相關資訊,以及 Kubernetes 資源的相關資訊。
criticalIncidents[].resource.component
string
必填
元件是回報事件的資料庫服務子系統內部 ID。
criticalIncidents[].resource.location
object
選填
位置
criticalIncidents[].resource.location.cluster
string
選填
叢集是受影響 Kubernetes 資源的叢集名稱。
criticalIncidents[].resource.location.group
string
選填
群組是叢集管理員資源的群組名稱。
criticalIncidents[].resource.location.kind
string
選填
Kind 是 Kubernetes 資源的種類。
criticalIncidents[].resource.location.name
string
選填
「名稱」是受影響的 Kubernetes 資源名稱。
criticalIncidents[].resource.location.namespace
string
選填
命名空間是受影響 Kubernetes 資源的命名空間。
criticalIncidents[].resource.location.version
string
選填
Group 是 Kubernetes 資源的版本。
criticalIncidents[].stackTrace
object
選填
StackTrace 包含來自堆疊追蹤記錄的非結構化訊息清單。
criticalIncidents[].stackTrace.component
string
選填
「Component」是記錄訊息的資料庫服務元件名稱。
criticalIncidents[].stackTrace.message
string
選填
記錄訊息。
criticalIncidents[].transientUntil
string
選填
TransientUntil (如有) 表示問題必須視為暫時性問題,直到指定時間為止。
latestFailoverStatus
object
選填
LatestFailoverStatus 是資料庫叢集最近一次更新的容錯移轉狀態。這個狀態是資料庫叢集目前或最近一次更新的容錯移轉作業狀態副本。這項功能可用於輕鬆監控執行中的容錯移轉作業狀態。
latestFailoverStatus.failoverName
string
選填
FailoverName 是最新容錯移轉的名稱。
latestFailoverStatus.status
object
選填
狀態代表資料庫叢集最近一次容錯移轉的狀態。
latestFailoverStatus.status.conditions
object
選填
條件代表實體目前狀態的最新可用觀察結果。
latestFailoverStatus.status.conditions.lastTransitionTime
string
必填
lastTransitionTime 是指條件最近一次從一個狀態轉變為另一個狀態的時間,也就是底層條件變更時。如果不知道,可以使用 API 欄位變更的時間。
latestFailoverStatus.status.conditions.message
string
必填
message 是使用者可理解的訊息,指出轉換的詳細資料。這可能是空字串。
latestFailoverStatus.status.conditions.observedGeneration
integer
選填
observedGeneration 代表條件設定依據的 .metadata.generation。舉例來說,如果 .metadata.generation 為 12,但 .status.conditions[x].observedGeneration 為 9,則該條件相對於執行個體的目前狀態已過時。
latestFailoverStatus.status.conditions.reason
string
必填
reason 包含程式化 ID,指出條件上次轉換的原因。特定條件類型的產生者可以定義這個欄位的預期值和意義,以及這些值是否視為保證的 API。值應為 CamelCase 字串。這個欄位不得留空。
latestFailoverStatus.status.conditions.status
string
必填
條件的狀態,可以是 True、False 或 Unknown。
latestFailoverStatus.status.conditions.type
string
必填
條件類型,格式為 CamelCase 或 foo.example.com/CamelCase。許多 .condition.type 值在 Available 等資源中保持一致,但由於任意條件可能很有用 (請參閱 .node.status.conditions),因此解除衝突的能力非常重要。與其相符的規則運算式為 (dns1123SubdomainFmt/)?(qualifiedNameFmt)。
latestFailoverStatus.status.createTime
string
選填
CreateTime 是指建立內部容錯移轉工作流程機制的時間。
latestFailoverStatus.status.criticalIncidents
object
選填
CriticalIncidents 是所有未解決重大事件的平面清單。
latestFailoverStatus.status.criticalIncidents.code
string
必填
Code 是這項特定錯誤的錯誤代碼。錯誤代碼為 DBSE+數字字串,例如「DBS1012」。
latestFailoverStatus.status.criticalIncidents.createTime
string
必填
CreateTime 是指在來源建立這個事件的時間戳記。
latestFailoverStatus.status.criticalIncidents.message
string
選填
訊息會說明發生的事件或錯誤。
latestFailoverStatus.status.criticalIncidents.messageTemplateParams
object
選填
MessageTemplateParams 包含鍵/值組合,用於在使用者介面中產生容易使用的資料驅動型 Message 版本。
latestFailoverStatus.status.criticalIncidents.resource
object
必填
這個資源包含回報事件的資料庫服務元件相關資訊,以及叢集管理員資源的相關資訊。
latestFailoverStatus.status.criticalIncidents.resource.component
string
必填
元件是回報事件的資料庫服務子系統內部 ID。
latestFailoverStatus.status.criticalIncidents.resource.location
object
選填
位置
latestFailoverStatus.status.criticalIncidents.resource.location.cluster
string
選填
Cluster 是受影響的 Cluster Manager 資源叢集名稱。
latestFailoverStatus.status.criticalIncidents.resource.location.group
string
選填
群組是叢集管理員資源的群組名稱。
latestFailoverStatus.status.criticalIncidents.resource.location.kind
string
選填
Kind 是叢集管理工具資源的 Kind。
latestFailoverStatus.status.criticalIncidents.resource.location.name
string
選填
Name 是受影響的 Cluster Manager 資源名稱。
latestFailoverStatus.status.criticalIncidents.resource.location.namespace
string
選填
命名空間是受影響的 Cluster Manager 資源命名空間。
latestFailoverStatus.status.criticalIncidents.resource.location.version
string
選填
群組是 Cluster Manager 資源的版本。
latestFailoverStatus.status.criticalIncidents.stackTrace
object
選填
StackTrace 包含來自堆疊追蹤記錄的非結構化訊息清單。
latestFailoverStatus.status.criticalIncidents.stackTrace.component
string
選填
「Component」是記錄訊息的資料庫服務元件名稱。
latestFailoverStatus.status.criticalIncidents.stackTrace.message
string
選填
記錄訊息。
latestFailoverStatus.status.criticalIncidents.transientUntil
string
選填
TransientUntil (如有) 表示問題必須視為暫時性問題,直到指定時間為止。
latestFailoverStatus.status.endTime
string
選填
EndTime 是指容錯移轉達到最終狀態的時間。
latestFailoverStatus.status.internal
object
選填
系統控制器會使用「Internal」。請勿依賴本節中的資訊。
latestFailoverStatus.status.internal.attempt
integer
必填
嘗試次數用於重試邏輯,預設值為 0。
latestFailoverStatus.status.internal.lastPhaseChangeTime
string
選填
LastPhaseChangeTime 是 L1 容錯移轉上次變更為新階段的時間。這會用於逾時邏輯。
latestFailoverStatus.status.internal.newPrimary
string
必填
NewPrimary 是您嘗試容錯移轉的執行個體。
latestFailoverStatus.status.internal.newPrimaryZone
string
選填
NewPrimaryZone 是我們嘗試容錯移轉的區域。
latestFailoverStatus.status.internal.oldPrimary
string
必填
OldPrimary 是容錯移轉開始時的主要執行個體。
latestFailoverStatus.status.internal.phase
string
選填
階段用於追蹤容錯移轉的目前狀態。
latestFailoverStatus.status.observedGeneration
integer
選填
控制器觀察到的世代。
latestFailoverStatus.status.reconciled
boolean
選填
資源是否已由控制器調解。
latestFailoverStatus.status.startTime
string
選填
StartTime 是容錯移轉作業的開始時間。
latestFailoverStatus.status.state
string
選填
「State」是容錯移轉作業的目前狀態。值為「InProgress」、「Success」或「Failed」。InProgress 表示容錯移轉仍在進行中。「成功」表示容錯移轉已完成。當新的主要執行個體升級成功,即表示作業完成。「失敗」表示運算子無法升級新的主要執行個體。DBCluster 可能需要手動修復。
observedGeneration
integer
選填
內部:控制器觀察到的世代。
phase
string
選填
階段是 DBCluster 目前狀態的摘要
primary
object
選填
Primary 包含主要執行個體的狀態。
primary.adminUser.passwordRef.name
string
選填
參照對象的名稱。
primary.allocatedResources
object
選填
AllocatedResources 代表記憶體、CPU 和磁碟的目前設定。
primary.allocatedResources.cpu
integer or string
必填
分配給資料庫程序的 CPU 數量。
primary.allocatedResources.memory
string or integer
必填
分配給資料庫程序的記憶體量。
primary.conditions
object
必填
條件代表執行個體目前狀態的最新觀察結果。
primary.conditions.lastTransitionTime
string
必填
lastTransitionTime 是指條件最近一次從一個狀態轉變為另一個狀態的時間,也就是底層條件變更時。如果不知道基礎條件的變更時間,可以使用 API 欄位的變更時間。
primary.conditions.message
string
必填
message 是使用者可理解的訊息,指出轉換的詳細資料。這個值可以是空白字串。
primary.conditions.observedGeneration
integer
選填
observedGeneration 代表條件設定依據的 .metadata.generation。舉例來說,如果 .metadata.generation 為 12,但 .status.conditions[x].observedGeneration 為 9,則該條件相對於執行個體的目前狀態已過時。
primary.conditions.reason
string
必填
reason 包含程式化 ID,指出條件上次轉換的原因。特定條件類型的產生者可以定義這個欄位的預期值和意義,以及這些值是否視為保證的 API。值應為 CamelCase 字串。這個欄位可能不得為空。
primary.conditions.status
string
必填
條件的狀態,可以是 True、False 或 Unknown。
primary.conditions.type
string
必填
條件類型,格式為 CamelCase 或 foo.example.com/CamelCase。許多 .condition.type 值在 Available 等資源中保持一致,但由於任意條件可能很有用 (請參閱 .node.status.conditions),因此解除衝突的能力非常重要。與其相符的規則運算式為 (dns1123SubdomainFmt/)?(qualifiedNameFmt)。
primary.endpoint
string
選填
端點是可用於建立資料庫連線的位址。已淘汰:請改用「端點」欄位。
primary.endpoints
object
選填
端點包含所有可存取這個執行個體的端點。
primary.endpoints.name
string
必填
名稱包含端點名稱。
primary.endpoints.value
string
選填
值包含端點資訊。
primary.endpoints.value
string
選填
值包含端點資訊。
primary.monitorPort
integer
選填
MonitorPort 是監控代理程式監聽的通訊埠號碼。
primary.currentParameters
object
選填
CurrentParameters 表示參數的目前值。CurrentParameters,確認 spec.primarySpec.parameters 欄位已套用至資料庫。這個欄位只會顯示 spec.primarySpec.parameters 中的參數名稱。
primary.port
integer
選填
Port 是資料庫監聽的通訊埠編號。
primary.phase
string
選填
階段是執行個體目前狀態的摘要。
primary.resources
object
選填
資料庫程序的資源規格。
primary.resources.cpu
integer or string
選填
分配給資料庫程序的 CPU 數量。
primary.resources.disks
list (object)
選填
分配給資料庫程序的磁碟規格。
primary.resources.disks[]
object
選填
磁碟規格。
primary.resources.disks[].name
string
選填
磁碟名稱。
primary.resources.disks[].path
string
選填
磁碟在檔案系統中的掛接路徑。
primary.resources.limits
object
選填
資料庫程序的資源限制。
primary.resources.limits.memory
string or integer
選填
分配給資料庫程序的最大記憶體量。
primary.resources.memory
string or integer
選填
分配給資料庫程序的記憶體量。
reconciled
boolean
選填
資源是否已由控制器調解。