仕様スキーマ
DBInstanceSpec は、DBInstance の選択された状態を定義します。
DBInstance:
metadata:
name: string
spec:
dbcParent:
name: string
instanceType: string
nodeCount: integer
readPoolPort: integer
resources:
cpu: integer or string
memory: string or integer
disks:
- name: string
path: string
size: string
フィールド タイプ必須または省略可 |
説明 |
|---|---|
name
| |
string必須 |
DBInstance リソースの名前。 |
dbcParent
| |
object必須 |
この DBInstance が複製元とする親 DBCluster。 |
dbcParent.name
| |
string必須 |
参照先の DBCluster の名前。 |
instanceType
| |
string省略可 |
DBInstance のタイプを示します。ReadPool 型をサポートします。デフォルト値は ReadPool です。 |
nodeCount
| |
integer省略可 |
この DBInstance に作成する DBNodes の数を決定します。サポートされる値は 0 ~ 20 です。デフォルト値は 1 です。 |
readPoolPort
| |
integer省略可 |
ReadPool DBInstance の専用 HAProxy フロントエンド ポート。 |
resources
| |
object省略可 |
この DBInstance に属するインスタンス(DBNode)に使用されるコンピューティング リソースとストレージ リソースを指定します。省略した場合、インスタンスは DBCluster のプライマリ インスタンスと同じリソースを使用します。 |
resources.cpu
| |
integer or string必須 |
データベース プロセスに割り当てられる CPU の量(2 や "2" など)。 |
resources.memory
| |
string or integer必須 |
データベース プロセスに割り当てられるメモリ量("6Gi" など)。 |
resources.disks
| |
list (object)必須 | データベース プロセスに割り当てられるディスクの仕様。 |
resources.disks[].name
| |
string必須 |
ディスクの名前。指定できる値は DataDisk と ObsDisk です。 |
resources.disks[].path
| |
string省略可 | ディスクがホスト ファイル システムにマウントされるパス。 |
resources.disks[].size
| |
string省略可 |
ディスクサイズ(バイト単位)(例: "15Gi")。 |
ステータス スキーマ
DBInstanceStatus は、DBInstance の観測された状態を定義します。
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
endpoints:
- name: string
value: string
observedGeneration: integer
reconciled: boolean
フィールド タイプ必須または省略可 |
説明 |
|---|---|
conditions
| |
list (object)省略可 |
DBInstance の現在の状態に関する取得可能な最新の観測値を表します。 |
conditions[]
| |
object省略可 | Condition は、この API リソースの現在の状態の 1 つの側面を表します。 |
conditions[].lastTransitionTime
| |
string必須 | 条件があるステータスから別のステータスに遷移した日時を示します。この時刻が不明な場合は、API フィールドが変更された時刻を使用します。 |
conditions[].message
| |
string必須 | 移行の詳細を説明する人間が読める文字列。この文字列は空にできます。 |
conditions[].observedGeneration
| |
integer省略可 |
条件が設定された .metadata.generation を表します。 |
conditions[].reason
| |
string必須 |
この条件の最後の遷移の理由を示すプログラマティック ID が含まれます。値は CamelCase 文字列です。DBInstance の推定値は次のとおりです。
|
conditions[].status
| |
string必須 |
条件のステータス。有効な値は True、False、Unknown です。 |
conditions[].type
| |
string必須 |
条件のタイプ(CamelCase)。想定されるタイプは次のとおりです。
|
criticalIncidents
| |
list (object)省略可 | アクティブな重大インシデントのリスト。 |
criticalIncidents[]
| |
object省略可 | 進行中の重大なインシデントを表します。 |
criticalIncidents[].code
| |
string必須 |
エラーのエラーコード。エラーコードは DBSE と数値文字列で構成されます(例: DBSE1012)。 |
criticalIncidents[].createTime
| |
string必須 | インシデントが発生元で作成されたときのタイムスタンプ。 |
criticalIncidents[].message
| |
string省略可 | 発生したインシデントまたはエラーの説明。 |
criticalIncidents[].messageTemplateParams
| |
object省略可 | UI でユーザー フレンドリーなデータドリブン メッセージを生成するための Key-Value ペアが含まれます。 |
criticalIncidents[].resource
| |
object必須 | インシデントを報告した Database Service コンポーネントに関する情報が含まれます。 |
criticalIncidents[].resource.component
| |
string必須 | インシデントを報告した Database Service サブシステムの内部識別子。 |
criticalIncidents[].resource.location
| |
object省略可 | 元のリソースのロケーション。 |
criticalIncidents[].resource.location.cluster
| |
string省略可 | 影響を受けるリソースのクラスタの名前。 |
criticalIncidents[].resource.location.group
| |
string省略可 | リソースのグループ名。 |
criticalIncidents[].resource.location.kind
| |
string省略可 | リソースの種類。 |
criticalIncidents[].resource.location.name
| |
string省略可 | 影響を受けるリソースの名前。 |
criticalIncidents[].resource.location.namespace
| |
string省略可 | 影響を受けるリソースの Namespace。 |
criticalIncidents[].resource.location.version
| |
string省略可 | リソースのバージョン。 |
criticalIncidents[].stackTrace
| |
list (object)省略可 | スタック トレースに含まれるメッセージの非構造化リスト。 |
criticalIncidents[].stackTrace[].component
| |
string省略可 | メッセージをロギングした Database Service コンポーネントの名前。 |
criticalIncidents[].stackTrace[].message
| |
string省略可 | ログに記録されたメッセージ。 |
criticalIncidents[].transientUntil
| |
string省略可 | 問題は指定された時刻まで一時的なものと見なされます。 |
endpoints
| |
list (object)省略可 | endpoints には、このインスタンスにアクセスできるすべてのエンドポイントが含まれます。 |
endpoints[].name
| |
string必須 |
Name はエンドポイントの名前です(例: Read-Only)。 |
endpoints[].value
| |
string必須 | value には、インスタンスに接続してアクセスするためのエンドポイント情報が含まれます。 |
observedGeneration
| |
integer省略可 | コントローラによって観測された世代。 |
reconciled
| |
boolean省略可 | リソースがコントローラによって調整されたかどうか。 |