ClusterClass [cluster.x-k8s.io/v1beta1]
- 描述
- ClusterClass is a template which can be used to create managed topologies.
- 类型
object
规格
.spec
- 描述
- spec is the desired state of ClusterClass.
- 类型
object
.spec.availabilityGates
- 描述
- availabilityGates specifies additional conditions to include when evaluating Cluster Available condition. NOTE: this field is considered only for computing v1beta2 conditions. NOTE: If a Cluster is using this ClusterClass, and this Cluster defines a custom list of availabilityGates, such list overrides availabilityGates defined in this field.
- 类型
array
.spec.availabilityGates[]
- 描述
- ClusterAvailabilityGate contains the type of a Cluster condition to be used as availability gate.
- 类型
object- 必填
conditionType
.spec.controlPlane
- 描述
- controlPlane is a reference to a local struct that holds the details for provisioning the Control Plane for the Cluster.
- 类型
object- 必填
ref
.spec.controlPlane.machineHealthCheck
- 描述
- machineHealthCheck defines a MachineHealthCheck for this ControlPlaneClass. This field is supported if and only if the ControlPlane provider template referenced above is Machine based and supports setting replicas.
- 类型
object
.spec.controlPlane.machineHealthCheck.remediationTemplate
- 描述
- remediationTemplate is a reference to a remediation template provided by an infrastructure provider. This field is completely optional, when filled, the MachineHealthCheck controller creates a new object from the template referenced and hands off remediation of the machine to a controller that lives outside of Cluster API.
- 类型
object
.spec.controlPlane.machineHealthCheck.unhealthyConditions
- 描述
- unhealthyConditions contains a list of the conditions that determine whether a node is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the node is unhealthy.
- 类型
array
.spec.controlPlane.machineHealthCheck.unhealthyConditions[]
- 描述
- UnhealthyCondition represents a Node condition type and value with a timeout specified as a duration. When the named condition has been in the given status for at least the timeout value, a node is considered unhealthy.
- 类型
object- 必填
statustimeouttype
.spec.controlPlane.machineInfrastructure
- 描述
- machineInfrastructure defines the metadata and infrastructure information for control plane machines. This field is supported if and only if the control plane provider template referenced above is Machine based and supports setting replicas.
- 类型
object- 必填
ref
.spec.controlPlane.machineInfrastructure.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.controlPlane.namingStrategy
- 描述
- namingStrategy allows changing the naming pattern used when creating the control plane provider object.
- 类型
object
.spec.controlPlane.readinessGates
- 描述
- readinessGates specifies additional conditions to include when evaluating Machine Ready condition. This field can be used e.g. to instruct the machine controller to include in the computation for Machine's ready computation a condition, managed by an external controllers, reporting the status of special software/hardware installed on the Machine. NOTE: This field is considered only for computing v1beta2 conditions. NOTE: If a Cluster defines a custom list of readinessGates for the control plane, such list overrides readinessGates defined in this field. NOTE: Specific control plane provider implementations might automatically extend the list of readinessGates; e.g. the kubeadm control provider adds ReadinessGates for the APIServerPodHealthy, SchedulerPodHealthy conditions, etc.
- 类型
array
.spec.controlPlane.readinessGates[]
- 描述
- MachineReadinessGate contains the type of a Machine condition to be used as a readiness gate.
- 类型
object- 必填
conditionType
.spec.controlPlane.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.infrastructure
- 描述
- infrastructure is a reference to a provider-specific template that holds the details for provisioning infrastructure specific cluster for the underlying provider. The underlying provider is responsible for the implementation of the template to an infrastructure cluster.
- 类型
object- 必填
ref
.spec.infrastructure.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.infrastructureNamingStrategy
- 描述
- infrastructureNamingStrategy allows changing the naming pattern used when creating the infrastructure object.
- 类型
object
.spec.patches
- 描述
- patches defines the patches which are applied to customize referenced templates of a ClusterClass. Note: Patches will be applied in the order of the array.
- 类型
array
.spec.patches[]
- 描述
- ClusterClassPatch defines a patch which is applied to customize the referenced templates.
- 类型
object- 必填
name
.spec.patches[].definitions
- 描述
- definitions define inline patches. Note: Patches will be applied in the order of the array. Note: Exactly one of Definitions or External must be set.
- 类型
array
.spec.patches[].definitions[]
- 描述
- PatchDefinition defines a patch which is applied to customize the referenced templates.
- 类型
object- 必填
jsonPatchesselector
.spec.patches[].definitions[].jsonPatches
- 描述
- jsonPatches defines the patches which should be applied on the templates matching the selector. Note: Patches will be applied in the order of the array.
- 类型
array
.spec.patches[].definitions[].jsonPatches[]
- 描述
- JSONPatch defines a JSON patch.
- 类型
object- 必填
oppath
.spec.patches[].definitions[].jsonPatches[].valueFrom
- 描述
- valueFrom defines the value of the patch. Note: Either Value or ValueFrom is required for add and replace operations. Only one of them is allowed to be set at the same time.
- 类型
object
.spec.patches[].definitions[].selector
- 描述
- selector defines on which templates the patch should be applied.
- 类型
object- 必填
apiVersionkindmatchResources
.spec.patches[].definitions[].selector.matchResources
- 描述
- matchResources selects templates based on where they are referenced.
- 类型
object
.spec.patches[].definitions[].selector.matchResources.machineDeploymentClass
- 描述
- machineDeploymentClass selects templates referenced in specific MachineDeploymentClasses in .spec.workers.machineDeployments.
- 类型
object
.spec.patches[].definitions[].selector.matchResources.machineDeploymentClass.names
- 描述
- names selects templates by class names.
- 类型
array
.spec.patches[].definitions[].selector.matchResources.machineDeploymentClass.names[]
- 类型
string
.spec.patches[].definitions[].selector.matchResources.machinePoolClass
- 描述
- machinePoolClass selects templates referenced in specific MachinePoolClasses in .spec.workers.machinePools.
- 类型
object
.spec.patches[].definitions[].selector.matchResources.machinePoolClass.names
- 描述
- names selects templates by class names.
- 类型
array
.spec.patches[].definitions[].selector.matchResources.machinePoolClass.names[]
- 类型
string
.spec.patches[].external
- 描述
- external defines an external patch. Note: Exactly one of Definitions or External must be set.
- 类型
object
.spec.patches[].external.settings
- 描述
- settings defines key value pairs to be passed to the extensions. Values defined here take precedence over the values defined in the corresponding ExtensionConfig.
- 类型
object
.spec.variables
- 描述
- variables defines the variables which can be configured in the Cluster topology and are then used in patches.
- 类型
array
.spec.variables[]
- 描述
- ClusterClassVariable defines a variable which can be configured in the Cluster topology and used in patches.
- 类型
object- 必填
namerequiredschema
.spec.variables[].schema
- 描述
- schema defines the schema of the variable.
- 类型
object- 必填
openAPIV3Schema
.spec.variables[].schema.openAPIV3Schema
- 描述
- openAPIV3Schema defines the schema of a variable via OpenAPI v3 schema. The schema is a subset of the schema used in Kubernetes CRDs.
- 类型
object
.spec.variables[].schema.openAPIV3Schema.enum
- 描述
- enum is the list of valid values of the variable. NOTE: Can be set for all types.
- 类型
array
.spec.variables[].schema.openAPIV3Schema.enum[]
- 类型
.spec.variables[].schema.openAPIV3Schema.required
- 描述
- required specifies which fields of an object are required. NOTE: Can only be set if type is object.
- 类型
array
.spec.variables[].schema.openAPIV3Schema.required[]
- 类型
string
.spec.variables[].schema.openAPIV3Schema.x-kubernetes-validations
- 描述
- x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
- 类型
array
.spec.variables[].schema.openAPIV3Schema.x-kubernetes-validations[]
- 描述
- ValidationRule describes a validation rule written in the CEL expression language.
- 类型
object- 必填
rule
.spec.variables[].schema.openAPIV3Schema.x-metadata
- 描述
- x-metadata is the metadata of a variable or a nested field within a variable. It can be used to add additional data for higher level tools.
- 类型
object
.spec.variables[].schema.openAPIV3Schema.x-metadata.annotations
- 描述
- annotations is an unstructured key value map that can be used to store and retrieve arbitrary metadata. They are not queryable.
- 类型
object
.spec.variables[].schema.openAPIV3Schema.x-metadata.labels
- 描述
- labels is a map of string keys and values that can be used to organize and categorize (scope and select) variables.
- 类型
object
.spec.workers
- 描述
- workers describes the worker nodes for the cluster. It is a collection of node types which can be used to create the worker nodes of the cluster.
- 类型
object
.spec.workers.machineDeployments
- 描述
- machineDeployments is a list of machine deployment classes that can be used to create a set of worker nodes.
- 类型
array
.spec.workers.machineDeployments[]
- 描述
- MachineDeploymentClass serves as a template to define a set of worker nodes of the cluster provisioned using the `ClusterClass`.
- 类型
object- 必填
classtemplate
.spec.workers.machineDeployments[].machineHealthCheck
- 描述
- machineHealthCheck defines a MachineHealthCheck for this MachineDeploymentClass.
- 类型
object
.spec.workers.machineDeployments[].machineHealthCheck.remediationTemplate
- 描述
- remediationTemplate is a reference to a remediation template provided by an infrastructure provider. This field is completely optional, when filled, the MachineHealthCheck controller creates a new object from the template referenced and hands off remediation of the machine to a controller that lives outside of Cluster API.
- 类型
object
.spec.workers.machineDeployments[].machineHealthCheck.unhealthyConditions
- 描述
- unhealthyConditions contains a list of the conditions that determine whether a node is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the node is unhealthy.
- 类型
array
.spec.workers.machineDeployments[].machineHealthCheck.unhealthyConditions[]
- 描述
- UnhealthyCondition represents a Node condition type and value with a timeout specified as a duration. When the named condition has been in the given status for at least the timeout value, a node is considered unhealthy.
- 类型
object- 必填
statustimeouttype
.spec.workers.machineDeployments[].namingStrategy
- 描述
- namingStrategy allows changing the naming pattern used when creating the MachineDeployment.
- 类型
object
.spec.workers.machineDeployments[].readinessGates
- 描述
- readinessGates specifies additional conditions to include when evaluating Machine Ready condition. This field can be used e.g. to instruct the machine controller to include in the computation for Machine's ready computation a condition, managed by an external controllers, reporting the status of special software/hardware installed on the Machine. NOTE: This field is considered only for computing v1beta2 conditions. NOTE: If a Cluster defines a custom list of readinessGates for a MachineDeployment using this MachineDeploymentClass, such list overrides readinessGates defined in this field.
- 类型
array
.spec.workers.machineDeployments[].readinessGates[]
- 描述
- MachineReadinessGate contains the type of a Machine condition to be used as a readiness gate.
- 类型
object- 必填
conditionType
.spec.workers.machineDeployments[].strategy
- 描述
- strategy is the deployment strategy to use to replace existing machines with new ones. NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
- 类型
object
.spec.workers.machineDeployments[].strategy.remediation
- 描述
- remediation controls the strategy of remediating unhealthy machines and how remediating operations should occur during the lifecycle of the dependant MachineSets.
- 类型
object
.spec.workers.machineDeployments[].strategy.rollingUpdate
- 描述
- rollingUpdate is the rolling update config params. Present only if MachineDeploymentStrategyType = RollingUpdate.
- 类型
object
.spec.workers.machineDeployments[].template
- 描述
- template is a local struct containing a collection of templates for creation of MachineDeployment objects representing a set of worker nodes.
- 类型
object- 必填
bootstrapinfrastructure
.spec.workers.machineDeployments[].template.bootstrap
- 描述
- bootstrap contains the bootstrap template reference to be used for the creation of worker Machines.
- 类型
object- 必填
ref
.spec.workers.machineDeployments[].template.bootstrap.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.workers.machineDeployments[].template.infrastructure
- 描述
- infrastructure contains the infrastructure template reference to be used for the creation of worker Machines.
- 类型
object- 必填
ref
.spec.workers.machineDeployments[].template.infrastructure.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.workers.machinePools
- 描述
- machinePools is a list of machine pool classes that can be used to create a set of worker nodes.
- 类型
array
.spec.workers.machinePools[]
- 描述
- MachinePoolClass serves as a template to define a pool of worker nodes of the cluster provisioned using `ClusterClass`.
- 类型
object- 必填
classtemplate
.spec.workers.machinePools[].failureDomains
- 描述
- failureDomains is the list of failure domains the MachinePool should be attached to. Must match a key in the FailureDomains map stored on the cluster object. NOTE: This value can be overridden while defining a Cluster.Topology using this MachinePoolClass.
- 类型
array
.spec.workers.machinePools[].failureDomains[]
- 类型
string
.spec.workers.machinePools[].namingStrategy
- 描述
- namingStrategy allows changing the naming pattern used when creating the MachinePool.
- 类型
object
.spec.workers.machinePools[].template
- 描述
- template is a local struct containing a collection of templates for creation of MachinePools objects representing a pool of worker nodes.
- 类型
object- 必填
bootstrapinfrastructure
.spec.workers.machinePools[].template.bootstrap
- 描述
- bootstrap contains the bootstrap template reference to be used for the creation of the Machines in the MachinePool.
- 类型
object- 必填
ref
.spec.workers.machinePools[].template.bootstrap.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.spec.workers.machinePools[].template.infrastructure
- 描述
- infrastructure contains the infrastructure template reference to be used for the creation of the MachinePool.
- 类型
object- 必填
ref
.spec.workers.machinePools[].template.infrastructure.ref
- 描述
- ref is a required reference to a custom resource offered by a provider.
- 类型
object
.status
- 描述
- status is the observed state of ClusterClass.
- 类型
object
.status.conditions
- 描述
- conditions defines current observed state of the ClusterClass.
- 类型
array
.status.conditions[]
- 描述
- Condition defines an observation of a Cluster API resource operational state.
- 类型
object- 必填
lastTransitionTimestatustype
.status.v1beta2
- 描述
- v1beta2 groups all the fields that will be added or modified in ClusterClass's status with the V1Beta2 version.
- 类型
object
.status.v1beta2.conditions
- 描述
- conditions represents the observations of a ClusterClass's current state. Known condition types are VariablesReady, RefVersionsUpToDate, Paused.
- 类型
array
.status.v1beta2.conditions[]
- 描述
- Condition contains details for one aspect of the current state of this API Resource.
- 类型
object- 必填
lastTransitionTimemessagereasonstatustype
.status.variables
- 描述
- variables is a list of ClusterClassStatusVariable that are defined for the ClusterClass.
- 类型
array
.status.variables[]
- 描述
- ClusterClassStatusVariable defines a variable which appears in the status of a ClusterClass.
- 类型
object- 必填
definitionsname
.status.variables[].definitions
- 描述
- definitions is a list of definitions for a variable.
- 类型
array
.status.variables[].definitions[]
- 描述
- ClusterClassStatusVariableDefinition defines a variable which appears in the status of a ClusterClass.
- 类型
object- 必填
fromrequiredschema
.status.variables[].definitions[].schema
- 描述
- schema defines the schema of the variable.
- 类型
object- 必填
openAPIV3Schema
.status.variables[].definitions[].schema.openAPIV3Schema
- 描述
- openAPIV3Schema defines the schema of a variable via OpenAPI v3 schema. The schema is a subset of the schema used in Kubernetes CRDs.
- 类型
object
.status.variables[].definitions[].schema.openAPIV3Schema.enum
- 描述
- enum is the list of valid values of the variable. NOTE: Can be set for all types.
- 类型
array
.status.variables[].definitions[].schema.openAPIV3Schema.enum[]
- 类型
.status.variables[].definitions[].schema.openAPIV3Schema.required
- 描述
- required specifies which fields of an object are required. NOTE: Can only be set if type is object.
- 类型
array
.status.variables[].definitions[].schema.openAPIV3Schema.required[]
- 类型
string
.status.variables[].definitions[].schema.openAPIV3Schema.x-kubernetes-validations
- 描述
- x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
- 类型
array
.status.variables[].definitions[].schema.openAPIV3Schema.x-kubernetes-validations[]
- 描述
- ValidationRule describes a validation rule written in the CEL expression language.
- 类型
object- 必填
rule
.status.variables[].definitions[].schema.openAPIV3Schema.x-metadata
- 描述
- x-metadata is the metadata of a variable or a nested field within a variable. It can be used to add additional data for higher level tools.
- 类型
object
.status.variables[].definitions[].schema.openAPIV3Schema.x-metadata.annotations
- 描述
- annotations is an unstructured key value map that can be used to store and retrieve arbitrary metadata. They are not queryable.
- 类型
object
.status.variables[].definitions[].schema.openAPIV3Schema.x-metadata.labels
- 描述
- labels is a map of string keys and values that can be used to organize and categorize (scope and select) variables.
- 类型
object
API 端点
可用的 API 端点如下:
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclassesDELETE: delete collection of ClusterClassGET: list objects of kind ClusterClassPOST: create a new ClusterClass
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclasses/{name}DELETE: delete the specified ClusterClassGET: read the specified ClusterClassPATCH: partially update the specified ClusterClassPUT: replace the specified ClusterClass
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclasses/{name}/statusGET: read status of the specified ClusterClassPATCH: partially update status of the specified ClusterClassPUT: replace status of the specified ClusterClass
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclasses
- HTTP 方法
DELETE- 描述
- delete collection of ClusterClass
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind ClusterClass
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new ClusterClass
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclasses/{name}
- HTTP 方法
DELETE- 描述
- delete the specified ClusterClass
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified ClusterClass
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified ClusterClass
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified ClusterClass
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/clusterclasses/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified ClusterClass
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified ClusterClass
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified ClusterClass
- 查询参数
- 请求体参数
- HTTP 响应