DCSIpHostnamePool [infrastructure.cluster.x-k8s.io/v1beta1]

描述
DCSIpHostnamePool is the Schema for the dcsiphostnamepools API.
类型
object

规格

属性类型描述
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

DCSIpHostnamePoolSpec defines the desired state of DCSIpHostnamePool.

statusobject

DCSIpHostnamePoolStatus defines the observed state of DCSIpHostnamePool.

.spec

描述
DCSIpHostnamePoolSpec defines the desired state of DCSIpHostnamePool.
类型
object
必填
pool
属性类型描述
poolarray

.spec.pool

类型
array

.spec.pool[]

类型
object
属性类型描述
additionNicarray
dnsstring
dvSwitchNamestring

add for multi nic support if nic DVSwitchName or PortGroupName is nil, we will use vmtemplate DVSwitchName and PortGroupName

gatewaystring
hostnamestring
ipstring
ipv6string
machineNamestring
maskstring
persistentDiskarray

PersistentDisk defines disks that should survive VM upgrades (delete-recreate). Each entry is bound to (ip, slot); slot determines attach order and guest device name.

portGroupNamestring
portGroupUrnstring

.spec.pool[].additionNic

类型
array

.spec.pool[].additionNic[]

类型
object
属性类型描述
dnsstring
dvSwitchNamestring
gatewaystring
ipstring
ipv6string
maskstring
portGroupNamestring
portGroupUrnstring

.spec.pool[].persistentDisk

描述
PersistentDisk defines disks that should survive VM upgrades (delete-recreate). Each entry is bound to (ip, slot); slot determines attach order and guest device name.
类型
array

.spec.pool[].persistentDisk[]

描述
PersistentDisk describes a disk that survives VM upgrades on an IP slot. Identity key is (ip, slot). Path/Format are guest-side concerns: when both are nil the disk runs in raw block mode — the controller still attaches it to the VM, but Ignition skips mkfs/mount, leaving the device for guest-side applications (e.g. Ceph OSD) to manage.
类型
object
必填
quantityGBslot
属性类型描述
datastoreClusterNamestring

Provide exactly one of DatastoreClusterName or DatastoreName.

datastoreNamestring
formatstring

Format is the filesystem (xfs/ext4/...). Optional: when nil and Path is also nil, the disk runs in raw block mode; when Path is set but Format is nil, the Ignition template falls back to ext4. Immutable after creation.

isThinboolean

IsThin is creation-only: it is sent only when creating new DCS persistent volumes, and is not validated or reconciled for existing volumes. Nil keeps the platform default.

mountOptionsarray
optionsarray

Options: mkfs flags. Immutable after creation.

pathstring

Path is the guest mount point (e.g. /var/lib/etcd). Optional: when nil, Ignition does not render mkfs/mount for this disk (raw block mode).

pciTypestring

PciType defaults to "VIRTIO". Immutable after creation.

quantityGBinteger
slotinteger

Slot is the disk position (>= 0), unique per IP. Determines attach order, sequenceNum and guest device name. Immutable.

.spec.pool[].persistentDisk[].mountOptions

类型
array

.spec.pool[].persistentDisk[].mountOptions[]

类型
string

.spec.pool[].persistentDisk[].options

描述
Options: mkfs flags. Immutable after creation.
类型
array

.spec.pool[].persistentDisk[].options[]

类型
string

.status

描述
DCSIpHostnamePoolStatus defines the observed state of DCSIpHostnamePool.
类型
object
属性类型描述
persistentDiskStatusarray

PersistentDiskStatus survives DCSMachine delete-recreate; used for volume coordination and crash recovery.

.status.persistentDiskStatus

描述
PersistentDiskStatus survives DCSMachine delete-recreate; used for volume coordination and crash recovery.
类型
array

.status.persistentDiskStatus[]

描述
PersistentDiskStatus is the runtime state of a persistent volume at a (ip, slot).
类型
object
必填
ipslot
属性类型描述
attachedVmUrnstring
datastoreUrnstring
ipstring
lastErrorstring
lastTransitionTimestring
namestring

Name is the DCS volume name; format: {poolName}-{sha256(ip/slot)[:8]}. Used for idempotent CreateVolume-by-name lookup.

ownerMachineNamestring
ownerMachineUIDstring

OwnerMachineUID is retained across Machine delete so rolling upgrade can hand the record to the next Machine rather than orphan it.

pathstring
phasestring

DiskPhase is the coordination phase of a persistent disk record.

slotinteger
volumeUrnstring

API 端点

可用的 API 端点如下:

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools
    • DELETE: delete collection of DCSIpHostnamePool
    • GET: list objects of kind DCSIpHostnamePool
    • POST: create a new DCSIpHostnamePool
  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools/{name}
    • DELETE: delete the specified DCSIpHostnamePool
    • GET: read the specified DCSIpHostnamePool
    • PATCH: partially update the specified DCSIpHostnamePool
    • PUT: replace the specified DCSIpHostnamePool
  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools/{name}/status
    • GET: read status of the specified DCSIpHostnamePool
    • PATCH: partially update status of the specified DCSIpHostnamePool
    • PUT: replace status of the specified DCSIpHostnamePool

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools

HTTP 方法
DELETE
描述
delete collection of DCSIpHostnamePool
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind DCSIpHostnamePool
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePoolList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDCSIpHostnamePool schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
201 - CreatedDCSIpHostnamePool schema
202 - AcceptedDCSIpHostnamePool schema
401 - UnauthorizedEmpty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools/{name}

HTTP 方法
DELETE
描述
delete the specified DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified DCSIpHostnamePool
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDCSIpHostnamePool schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
201 - CreatedDCSIpHostnamePool schema
401 - UnauthorizedEmpty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/dcsiphostnamepools/{name}/status

HTTP 方法
GET
描述
read status of the specified DCSIpHostnamePool
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified DCSIpHostnamePool
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDCSIpHostnamePool schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDCSIpHostnamePool schema
201 - CreatedDCSIpHostnamePool schema
401 - UnauthorizedEmpty