KubeadmControlPlane [controlplane.cluster.x-k8s.io/v1beta1]

Description
KubeadmControlPlane is the Schema for the KubeadmControlPlane API.
Type
object

Specification

PropertyTypeDescription
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

spec is the desired state of KubeadmControlPlane.

statusobject

status is the observed state of KubeadmControlPlane.

.spec

Description
spec is the desired state of KubeadmControlPlane.
Type
object
Required
kubeadmConfigSpecmachineTemplateversion
PropertyTypeDescription
kubeadmConfigSpecobject

kubeadmConfigSpec is a KubeadmConfigSpec to use for initializing and joining machines to the control plane.

machineNamingStrategyobject

machineNamingStrategy allows changing the naming pattern used when creating Machines. InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines.

machineTemplateobject

machineTemplate contains information about how machines should be shaped when creating or updating a control plane.

remediationStrategyobject

remediationStrategy is the RemediationStrategy that controls how control plane machine remediation happens.

replicasinteger

replicas is the number of desired machines. Defaults to 1. When stacked etcd is used only odd numbers are permitted, as per etcd best practice. This is a pointer to distinguish between explicit zero and not specified.

rolloutAfterstring

rolloutAfter is a field to indicate a rollout should be performed after the specified time even if no changes have been made to the KubeadmControlPlane. Example: In the YAML the time can be specified in the RFC3339 format. To specify the rolloutAfter target as March 9, 2023, at 9 am UTC use "2023-03-09T09:00:00Z".

rolloutBeforeobject

rolloutBefore is a field to indicate a rollout should be performed if the specified criteria is met.

rolloutStrategyobject

rolloutStrategy is the RolloutStrategy to use to replace control plane machines with new ones.

versionstring

version defines the desired Kubernetes version. Please note that if kubeadmConfigSpec.ClusterConfiguration.imageRepository is not set we don't allow upgrades to versions >= v1.22.0 for which kubeadm uses the old registry (k8s.gcr.io). Please use a newer patch version with the new registry instead. The default registries of kubeadm are:

  • registry.k8s.io (new registry): >= v1.22.17, >= v1.23.15, >= v1.24.9, >= v1.25.0
  • k8s.gcr.io (old registry): all older versions

.spec.kubeadmConfigSpec

Description
kubeadmConfigSpec is a KubeadmConfigSpec to use for initializing and joining machines to the control plane.
Type
object
PropertyTypeDescription
bootCommandsarray

bootCommands specifies extra commands to run very early in the boot process via the cloud-init bootcmd module. bootcmd will run on every boot, 'cloud-init-per' command can be used to make bootcmd run exactly once. This is typically run in the cloud-init.service systemd unit. This has no effect in Ignition.

clusterConfigurationobject

clusterConfiguration along with InitConfiguration are the configurations necessary for the init command

diskSetupobject

diskSetup specifies options for the creation of partition tables and file systems on devices.

filesarray

files specifies extra files to be passed to user_data upon creation.

formatstring

format specifies the output format of the bootstrap data

ignitionobject

ignition contains Ignition specific configuration.

initConfigurationobject

initConfiguration along with ClusterConfiguration are the configurations necessary for the init command

joinConfigurationobject

joinConfiguration is the kubeadm configuration for the join command

mountsarray

mounts specifies a list of mount points to be setup.

ntpobject

ntp specifies NTP configuration

postKubeadmCommandsarray

postKubeadmCommands specifies extra commands to run after kubeadm runs. With cloud-init, this is appended to the runcmd module configuration, and is typically executed in the cloud-final.service systemd unit. In Ignition, this is appended to /etc/kubeadm.sh.

preKubeadmCommandsarray

preKubeadmCommands specifies extra commands to run before kubeadm runs. With cloud-init, this is prepended to the runcmd module configuration, and is typically executed in the cloud-final.service systemd unit. In Ignition, this is prepended to /etc/kubeadm.sh.

useExperimentalRetryJoinboolean

useExperimentalRetryJoin replaces a basic kubeadm command with a shell script with retries for joins.

This is meant to be an experimental temporary workaround on some environments where joins fail due to timing (and other issues). The long term goal is to add retries to kubeadm proper and use that functionality.

This will add about 40KB to userdata

For more information, refer to https://github.com/kubernetes-sigs/cluster-api/pull/2763#discussion_r397306055.

Deprecated: This experimental fix is no longer needed and this field will be removed in a future release. When removing also remove from staticcheck exclude-rules for SA1019 in golangci.yml

usersarray

users specifies extra users to add

verbosityinteger

verbosity is the number for the kubeadm log level verbosity. It overrides the --v flag in kubeadm commands.

.spec.kubeadmConfigSpec.bootCommands

Description
bootCommands specifies extra commands to run very early in the boot process via the cloud-init bootcmd module. bootcmd will run on every boot, 'cloud-init-per' command can be used to make bootcmd run exactly once. This is typically run in the cloud-init.service systemd unit. This has no effect in Ignition.
Type
array

.spec.kubeadmConfigSpec.bootCommands[]

Type
string

.spec.kubeadmConfigSpec.clusterConfiguration

Description
clusterConfiguration along with InitConfiguration are the configurations necessary for the init command
Type
object
PropertyTypeDescription
apiServerobject

apiServer contains extra settings for the API server control plane component

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

certificatesDirstring

certificatesDir specifies where to store or look for all required certificates. NB: if not provided, this will default to /etc/kubernetes/pki

clusterNamestring

clusterName is the cluster name

controlPlaneEndpointstring

controlPlaneEndpoint sets a stable IP address or DNS name for the control plane; it can be a valid IP address or a RFC-1123 DNS subdomain, both with optional TCP port. In case the ControlPlaneEndpoint is not specified, the AdvertiseAddress + BindPort are used; in case the ControlPlaneEndpoint is specified but without a TCP port, the BindPort is used. Possible usages are: e.g. In a cluster with more than one control plane instances, this field should be assigned the address of the external load balancer in front of the control plane instances. e.g. in environments with enforced node recycling, the ControlPlaneEndpoint could be used for assigning a stable DNS to the control plane. NB: This value defaults to the first value in the Cluster object status.apiEndpoints array.

controllerManagerobject

controllerManager contains extra settings for the controller manager control plane component

dnsobject

dns defines the options for the DNS add-on installed in the cluster.

etcdobject

etcd holds configuration for etcd. NB: This value defaults to a Local (stacked) etcd

featureGatesobject

featureGates enabled by the user.

imageRepositorystring

imageRepository sets the container registry to pull images from.

  • If not set, the default registry of kubeadm will be used, i.e.
    • registry.k8s.io (new registry): >= v1.22.17, >= v1.23.15, >= v1.24.9, >= v1.25.0
    • k8s.gcr.io (old registry): all older versions Please note that when imageRepository is not set we don't allow upgrades to versions >= v1.22.0 which use the old registry (k8s.gcr.io). Please use a newer patch version with the new registry instead (i.e. >= v1.22.17,

    = v1.23.15, >= v1.24.9, >= v1.25.0).

  • If the version is a CI build (kubernetes version starts with ci/ or ci-cross/) gcr.io/k8s-staging-ci-images will be used as a default for control plane components and for kube-proxy, while registry.k8s.io will be used for all the other images.
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

kubernetesVersionstring

kubernetesVersion is the target version of the control plane. NB: This value defaults to the Machine object spec.version

networkingobject

networking holds configuration for the networking topology of the cluster. NB: This value defaults to the Cluster object spec.clusterNetwork.

schedulerobject

scheduler contains extra settings for the scheduler control plane component

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer

Description
apiServer contains extra settings for the API server control plane component
Type
object
PropertyTypeDescription
certSANsarray

certSANs sets extra Subject Alternative Names for the API Server signing cert.

extraArgsobject

extraArgs is an extra set of flags to pass to the control plane component.

extraEnvsarray

extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.

extraVolumesarray

extraVolumes is an extra set of host volumes, mounted to the control plane component.

timeoutForControlPlanestring

timeoutForControlPlane controls the timeout that we use for API server to appear

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.certSANs

Description
certSANs sets extra Subject Alternative Names for the API Server signing cert.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.certSANs[]

Type
string

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraArgs

Description
extraArgs is an extra set of flags to pass to the control plane component.
Type
object

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs

Description
extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[]

Description
EnvVar represents an environment variable present in a Container.
Type
object
Required
name
PropertyTypeDescription
namestring

Name of the environment variable. Must be a C_IDENTIFIER.

valuestring

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

valueFromobject

Source for the environment variable's value. Cannot be used if value is not empty.

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom

Description
Source for the environment variable's value. Cannot be used if value is not empty.
Type
object
PropertyTypeDescription
configMapKeyRefobject

Selects a key of a ConfigMap.

fieldRefobject

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

resourceFieldRefobject

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secretKeyRefobject

Selects a key of a secret in the pod's namespace

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.configMapKeyRef

Description
Selects a key of a ConfigMap.
Type
object
Required
key
PropertyTypeDescription
keystring

The key to select.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the ConfigMap or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.fieldRef

Description
Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Type
object
Required
fieldPath
PropertyTypeDescription
apiVersionstring

Version of the schema the FieldPath is written in terms of, defaults to "v1".

fieldPathstring

Path of the field to select in the specified API version.

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.resourceFieldRef

Description
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
Type
object
Required
resource
PropertyTypeDescription
containerNamestring

Container name: required for volumes, optional for env vars

divisor

Specifies the output format of the exposed resources, defaults to "1"

resourcestring

Required: resource to select

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.secretKeyRef

Description
Selects a key of a secret in the pod's namespace
Type
object
Required
key
PropertyTypeDescription
keystring

The key of the secret to select from. Must be a valid secret key.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the Secret or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraVolumes

Description
extraVolumes is an extra set of host volumes, mounted to the control plane component.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraVolumes[]

Description
HostPathMount contains elements describing volumes that are mounted from the host.
Type
object
Required
hostPathmountPathname
PropertyTypeDescription
hostPathstring

hostPath is the path in the host that will be mounted inside the pod.

mountPathstring

mountPath is the path inside the pod where hostPath will be mounted.

namestring

name of the volume inside the pod template.

pathTypestring

pathType is the type of the HostPath.

readOnlyboolean

readOnly controls write access to the volume

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager

Description
controllerManager contains extra settings for the controller manager control plane component
Type
object
PropertyTypeDescription
extraArgsobject

extraArgs is an extra set of flags to pass to the control plane component.

extraEnvsarray

extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.

extraVolumesarray

extraVolumes is an extra set of host volumes, mounted to the control plane component.

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraArgs

Description
extraArgs is an extra set of flags to pass to the control plane component.
Type
object

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs

Description
extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[]

Description
EnvVar represents an environment variable present in a Container.
Type
object
Required
name
PropertyTypeDescription
namestring

Name of the environment variable. Must be a C_IDENTIFIER.

valuestring

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

valueFromobject

Source for the environment variable's value. Cannot be used if value is not empty.

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom

Description
Source for the environment variable's value. Cannot be used if value is not empty.
Type
object
PropertyTypeDescription
configMapKeyRefobject

Selects a key of a ConfigMap.

fieldRefobject

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

resourceFieldRefobject

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secretKeyRefobject

Selects a key of a secret in the pod's namespace

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.configMapKeyRef

Description
Selects a key of a ConfigMap.
Type
object
Required
key
PropertyTypeDescription
keystring

The key to select.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the ConfigMap or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.fieldRef

Description
Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Type
object
Required
fieldPath
PropertyTypeDescription
apiVersionstring

Version of the schema the FieldPath is written in terms of, defaults to "v1".

fieldPathstring

Path of the field to select in the specified API version.

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.resourceFieldRef

Description
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
Type
object
Required
resource
PropertyTypeDescription
containerNamestring

Container name: required for volumes, optional for env vars

divisor

Specifies the output format of the exposed resources, defaults to "1"

resourcestring

Required: resource to select

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.secretKeyRef

Description
Selects a key of a secret in the pod's namespace
Type
object
Required
key
PropertyTypeDescription
keystring

The key of the secret to select from. Must be a valid secret key.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the Secret or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraVolumes

Description
extraVolumes is an extra set of host volumes, mounted to the control plane component.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraVolumes[]

Description
HostPathMount contains elements describing volumes that are mounted from the host.
Type
object
Required
hostPathmountPathname
PropertyTypeDescription
hostPathstring

hostPath is the path in the host that will be mounted inside the pod.

mountPathstring

mountPath is the path inside the pod where hostPath will be mounted.

namestring

name of the volume inside the pod template.

pathTypestring

pathType is the type of the HostPath.

readOnlyboolean

readOnly controls write access to the volume

.spec.kubeadmConfigSpec.clusterConfiguration.dns

Description
dns defines the options for the DNS add-on installed in the cluster.
Type
object
PropertyTypeDescription
imageRepositorystring

imageRepository sets the container registry to pull images from. if not set, the ImageRepository defined in ClusterConfiguration will be used instead.

imageTagstring

imageTag allows to specify a tag for the image. In case this value is set, kubeadm does not change automatically the version of the above components during upgrades.

.spec.kubeadmConfigSpec.clusterConfiguration.etcd

Description
etcd holds configuration for etcd. NB: This value defaults to a Local (stacked) etcd
Type
object
PropertyTypeDescription
externalobject

external describes how to connect to an external etcd cluster Local and External are mutually exclusive

localobject

local provides configuration knobs for configuring the local etcd instance Local and External are mutually exclusive

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external

Description
external describes how to connect to an external etcd cluster Local and External are mutually exclusive
Type
object
Required
caFilecertFileendpointskeyFile
PropertyTypeDescription
caFilestring

caFile is an SSL Certificate Authority file used to secure etcd communication. Required if using a TLS connection.

certFilestring

certFile is an SSL certification file used to secure etcd communication. Required if using a TLS connection.

endpointsarray

endpoints of etcd members. Required for ExternalEtcd.

keyFilestring

keyFile is an SSL key file used to secure etcd communication. Required if using a TLS connection.

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external.endpoints

Description
endpoints of etcd members. Required for ExternalEtcd.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external.endpoints[]

Type
string

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local

Description
local provides configuration knobs for configuring the local etcd instance Local and External are mutually exclusive
Type
object
PropertyTypeDescription
dataDirstring

dataDir is the directory etcd will place its data. Defaults to "/var/lib/etcd".

extraArgsobject

extraArgs are extra arguments provided to the etcd binary when run inside a static pod.

extraEnvsarray

extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.

imageRepositorystring

imageRepository sets the container registry to pull images from. if not set, the ImageRepository defined in ClusterConfiguration will be used instead.

imageTagstring

imageTag allows to specify a tag for the image. In case this value is set, kubeadm does not change automatically the version of the above components during upgrades.

peerCertSANsarray

peerCertSANs sets extra Subject Alternative Names for the etcd peer signing cert.

serverCertSANsarray

serverCertSANs sets extra Subject Alternative Names for the etcd server signing cert.

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraArgs

Description
extraArgs are extra arguments provided to the etcd binary when run inside a static pod.
Type
object

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs

Description
extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[]

Description
EnvVar represents an environment variable present in a Container.
Type
object
Required
name
PropertyTypeDescription
namestring

Name of the environment variable. Must be a C_IDENTIFIER.

valuestring

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

valueFromobject

Source for the environment variable's value. Cannot be used if value is not empty.

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom

Description
Source for the environment variable's value. Cannot be used if value is not empty.
Type
object
PropertyTypeDescription
configMapKeyRefobject

Selects a key of a ConfigMap.

fieldRefobject

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

resourceFieldRefobject

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secretKeyRefobject

Selects a key of a secret in the pod's namespace

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.configMapKeyRef

Description
Selects a key of a ConfigMap.
Type
object
Required
key
PropertyTypeDescription
keystring

The key to select.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the ConfigMap or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.fieldRef

Description
Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Type
object
Required
fieldPath
PropertyTypeDescription
apiVersionstring

Version of the schema the FieldPath is written in terms of, defaults to "v1".

fieldPathstring

Path of the field to select in the specified API version.

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.resourceFieldRef

Description
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
Type
object
Required
resource
PropertyTypeDescription
containerNamestring

Container name: required for volumes, optional for env vars

divisor

Specifies the output format of the exposed resources, defaults to "1"

resourcestring

Required: resource to select

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.secretKeyRef

Description
Selects a key of a secret in the pod's namespace
Type
object
Required
key
PropertyTypeDescription
keystring

The key of the secret to select from. Must be a valid secret key.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the Secret or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.peerCertSANs

Description
peerCertSANs sets extra Subject Alternative Names for the etcd peer signing cert.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.peerCertSANs[]

Type
string

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.serverCertSANs

Description
serverCertSANs sets extra Subject Alternative Names for the etcd server signing cert.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.serverCertSANs[]

Type
string

.spec.kubeadmConfigSpec.clusterConfiguration.featureGates

Description
featureGates enabled by the user.
Type
object

.spec.kubeadmConfigSpec.clusterConfiguration.networking

Description
networking holds configuration for the networking topology of the cluster. NB: This value defaults to the Cluster object spec.clusterNetwork.
Type
object
PropertyTypeDescription
dnsDomainstring

dnsDomain is the dns domain used by k8s services. Defaults to "cluster.local".

podSubnetstring

podSubnet is the subnet used by pods. If unset, the API server will not allocate CIDR ranges for every node. Defaults to a comma-delimited string of the Cluster object's spec.clusterNetwork.services.cidrBlocks if that is set

serviceSubnetstring

serviceSubnet is the subnet used by k8s services. Defaults to a comma-delimited string of the Cluster object's spec.clusterNetwork.pods.cidrBlocks, or to "10.96.0.0/12" if that's unset.

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler

Description
scheduler contains extra settings for the scheduler control plane component
Type
object
PropertyTypeDescription
extraArgsobject

extraArgs is an extra set of flags to pass to the control plane component.

extraEnvsarray

extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.

extraVolumesarray

extraVolumes is an extra set of host volumes, mounted to the control plane component.

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraArgs

Description
extraArgs is an extra set of flags to pass to the control plane component.
Type
object

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs

Description
extraEnvs is an extra set of environment variables to pass to the control plane component. Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default. This option takes effect only on Kubernetes >=1.31.0.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[]

Description
EnvVar represents an environment variable present in a Container.
Type
object
Required
name
PropertyTypeDescription
namestring

Name of the environment variable. Must be a C_IDENTIFIER.

valuestring

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

valueFromobject

Source for the environment variable's value. Cannot be used if value is not empty.

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom

Description
Source for the environment variable's value. Cannot be used if value is not empty.
Type
object
PropertyTypeDescription
configMapKeyRefobject

Selects a key of a ConfigMap.

fieldRefobject

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

resourceFieldRefobject

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secretKeyRefobject

Selects a key of a secret in the pod's namespace

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.configMapKeyRef

Description
Selects a key of a ConfigMap.
Type
object
Required
key
PropertyTypeDescription
keystring

The key to select.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the ConfigMap or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.fieldRef

Description
Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Type
object
Required
fieldPath
PropertyTypeDescription
apiVersionstring

Version of the schema the FieldPath is written in terms of, defaults to "v1".

fieldPathstring

Path of the field to select in the specified API version.

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.resourceFieldRef

Description
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
Type
object
Required
resource
PropertyTypeDescription
containerNamestring

Container name: required for volumes, optional for env vars

divisor

Specifies the output format of the exposed resources, defaults to "1"

resourcestring

Required: resource to select

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.secretKeyRef

Description
Selects a key of a secret in the pod's namespace
Type
object
Required
key
PropertyTypeDescription
keystring

The key of the secret to select from. Must be a valid secret key.

namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the Secret or its key must be defined

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraVolumes

Description
extraVolumes is an extra set of host volumes, mounted to the control plane component.
Type
array

.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraVolumes[]

Description
HostPathMount contains elements describing volumes that are mounted from the host.
Type
object
Required
hostPathmountPathname
PropertyTypeDescription
hostPathstring

hostPath is the path in the host that will be mounted inside the pod.

mountPathstring

mountPath is the path inside the pod where hostPath will be mounted.

namestring

name of the volume inside the pod template.

pathTypestring

pathType is the type of the HostPath.

readOnlyboolean

readOnly controls write access to the volume

.spec.kubeadmConfigSpec.diskSetup

Description
diskSetup specifies options for the creation of partition tables and file systems on devices.
Type
object
PropertyTypeDescription
filesystemsarray

filesystems specifies the list of file systems to setup.

partitionsarray

partitions specifies the list of the partitions to setup.

.spec.kubeadmConfigSpec.diskSetup.filesystems

Description
filesystems specifies the list of file systems to setup.
Type
array

.spec.kubeadmConfigSpec.diskSetup.filesystems[]

Description
Filesystem defines the file systems to be created.
Type
object
Required
devicefilesystem
PropertyTypeDescription
devicestring

device specifies the device name

extraOptsarray

extraOpts defined extra options to add to the command for creating the file system.

filesystemstring

filesystem specifies the file system type.

labelstring

label specifies the file system label to be used. If set to None, no label is used.

overwriteboolean

overwrite defines whether or not to overwrite any existing filesystem. If true, any pre-existing file system will be destroyed. Use with Caution.

partitionstring

partition specifies the partition to use. The valid options are: "auto|any", "auto", "any", "none", and , where NUM is the actual partition number.

replaceFSstring

replaceFS is a special directive, used for Microsoft Azure that instructs cloud-init to replace a file system of <FS_TYPE>. NOTE: unless you define a label, this requires the use of the 'any' partition directive.

.spec.kubeadmConfigSpec.diskSetup.filesystems[].extraOpts

Description
extraOpts defined extra options to add to the command for creating the file system.
Type
array

.spec.kubeadmConfigSpec.diskSetup.filesystems[].extraOpts[]

Type
string

.spec.kubeadmConfigSpec.diskSetup.partitions

Description
partitions specifies the list of the partitions to setup.
Type
array

.spec.kubeadmConfigSpec.diskSetup.partitions[]

Description
Partition defines how to create and layout a partition.
Type
object
Required
devicelayout
PropertyTypeDescription
devicestring

device is the name of the device.

layoutboolean

layout specifies the device layout. If it is true, a single partition will be created for the entire device. When layout is false, it means don't partition or ignore existing partitioning.

overwriteboolean

overwrite describes whether to skip checks and create the partition if a partition or filesystem is found on the device. Use with caution. Default is 'false'.

tableTypestring

tableType specifies the tupe of partition table. The following are supported: 'mbr': default and setups a MS-DOS partition table 'gpt': setups a GPT partition table

.spec.kubeadmConfigSpec.files

Description
files specifies extra files to be passed to user_data upon creation.
Type
array

.spec.kubeadmConfigSpec.files[]

Description
File defines the input for generating write_files in cloud-init.
Type
object
Required
path
PropertyTypeDescription
appendboolean

append specifies whether to append Content to existing file if Path exists.

contentstring

content is the actual content of the file.

contentFromobject

contentFrom is a referenced source of content to populate the file.

encodingstring

encoding specifies the encoding of the file contents.

ownerstring

owner specifies the ownership of the file, e.g. "root:root".

pathstring

path specifies the full path on disk where to store the file.

permissionsstring

permissions specifies the permissions to assign to the file, e.g. "0640".

.spec.kubeadmConfigSpec.files[].contentFrom

Description
contentFrom is a referenced source of content to populate the file.
Type
object
Required
secret
PropertyTypeDescription
secretobject

secret represents a secret that should populate this file.

.spec.kubeadmConfigSpec.files[].contentFrom.secret

Description
secret represents a secret that should populate this file.
Type
object
Required
keyname
PropertyTypeDescription
keystring

key is the key in the secret's data map for this value.

namestring

name of the secret in the KubeadmBootstrapConfig's namespace to use.

.spec.kubeadmConfigSpec.ignition

Description
ignition contains Ignition specific configuration.
Type
object
PropertyTypeDescription
containerLinuxConfigobject

containerLinuxConfig contains CLC specific configuration.

.spec.kubeadmConfigSpec.ignition.containerLinuxConfig

Description
containerLinuxConfig contains CLC specific configuration.
Type
object
PropertyTypeDescription
additionalConfigstring

additionalConfig contains additional configuration to be merged with the Ignition configuration generated by the bootstrapper controller. More info: https://coreos.github.io/ignition/operator-notes/#config-merging

The data format is documented here: https://kinvolk.io/docs/flatcar-container-linux/latest/provisioning/cl-config/

strictboolean

strict controls if AdditionalConfig should be strictly parsed. If so, warnings are treated as errors.

.spec.kubeadmConfigSpec.initConfiguration

Description
initConfiguration along with ClusterConfiguration are the configurations necessary for the init command
Type
object
PropertyTypeDescription
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

bootstrapTokensarray

bootstrapTokens is respected at kubeadm init time and describes a set of Bootstrap Tokens to create. This information IS NOT uploaded to the kubeadm cluster configmap, partly because of its sensitive nature

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

localAPIEndpointobject

localAPIEndpoint represents the endpoint of the API server instance that's deployed on this control plane node In HA setups, this differs from ClusterConfiguration.ControlPlaneEndpoint in the sense that ControlPlaneEndpoint is the global endpoint for the cluster, which then loadbalances the requests to each individual API server. This configuration object lets you customize what IP/DNS name and port the local API server advertises it's accessible on. By default, kubeadm tries to auto-detect the IP of the default interface and use that, but in case that process fails you may set the desired value here.

nodeRegistrationobject

nodeRegistration holds fields that relate to registering the new control-plane node to the cluster. When used in the context of control plane nodes, NodeRegistration should remain consistent across both InitConfiguration and JoinConfiguration

patchesobject

patches contains options related to applying patches to components deployed by kubeadm during "kubeadm init". The minimum kubernetes version needed to support Patches is v1.22

skipPhasesarray

skipPhases is a list of phases to skip during command execution. The list of phases can be obtained with the "kubeadm init --help" command. This option takes effect only on Kubernetes >=1.22.0.

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens

Description
bootstrapTokens is respected at `kubeadm init` time and describes a set of Bootstrap Tokens to create. This information IS NOT uploaded to the kubeadm cluster configmap, partly because of its sensitive nature
Type
array

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[]

Description
BootstrapToken describes one bootstrap token, stored as a Secret in the cluster.
Type
object
Required
token
PropertyTypeDescription
descriptionstring

description sets a human-friendly message why this token exists and what it's used for, so other administrators can know its purpose.

expiresstring

expires specifies the timestamp when this token expires. Defaults to being set dynamically at runtime based on the TTL. Expires and TTL are mutually exclusive.

groupsarray

groups specifies the extra groups that this token will authenticate as when/if used for authentication

tokenstring

token is used for establishing bidirectional trust between nodes and control-planes. Used for joining nodes in the cluster.

ttlstring

ttl defines the time to live for this token. Defaults to 24h. Expires and TTL are mutually exclusive.

usagesarray

usages describes the ways in which this token can be used. Can by default be used for establishing bidirectional trust, but that can be changed here.

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].groups

Description
groups specifies the extra groups that this token will authenticate as when/if used for authentication
Type
array

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].groups[]

Type
string

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].usages

Description
usages describes the ways in which this token can be used. Can by default be used for establishing bidirectional trust, but that can be changed here.
Type
array

.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].usages[]

Type
string

.spec.kubeadmConfigSpec.initConfiguration.localAPIEndpoint

Description
localAPIEndpoint represents the endpoint of the API server instance that's deployed on this control plane node In HA setups, this differs from ClusterConfiguration.ControlPlaneEndpoint in the sense that ControlPlaneEndpoint is the global endpoint for the cluster, which then loadbalances the requests to each individual API server. This configuration object lets you customize what IP/DNS name and port the local API server advertises it's accessible on. By default, kubeadm tries to auto-detect the IP of the default interface and use that, but in case that process fails you may set the desired value here.
Type
object
PropertyTypeDescription
advertiseAddressstring

advertiseAddress sets the IP address for the API server to advertise.

bindPortinteger

bindPort sets the secure port for the API Server to bind to. Defaults to 6443.

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration

Description
nodeRegistration holds fields that relate to registering the new control-plane node to the cluster. When used in the context of control plane nodes, NodeRegistration should remain consistent across both InitConfiguration and JoinConfiguration
Type
object
PropertyTypeDescription
criSocketstring

criSocket is used to retrieve container runtime info. This information will be annotated to the Node API object, for later re-use

ignorePreflightErrorsarray

ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.

imagePullPolicystring

imagePullPolicy specifies the policy for image pulling during kubeadm "init" and "join" operations. The value of this field must be one of "Always", "IfNotPresent" or "Never". Defaults to "IfNotPresent". This can be used only with Kubernetes version equal to 1.22 and later.

imagePullSerialboolean

imagePullSerial specifies if image pulling performed by kubeadm must be done serially or in parallel. This option takes effect only on Kubernetes >=1.31.0. Default: true (defaulted in kubeadm)

kubeletExtraArgsobject

kubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.

namestring

name is the .Metadata.Name field of the Node API object that will be created in this kubeadm init or kubeadm join operation. This field is also used in the CommonName field of the kubelet's client certificate to the API server. Defaults to the hostname of the node if not provided.

taintsarray

taints specifies the taints the Node API object should be registered with. If this field is unset, i.e. nil, in the kubeadm init process it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node, set this field to an empty slice, i.e. taints: [] in the YAML file. This field is solely used for Node registration.

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.ignorePreflightErrors

Description
ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
Type
array

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.ignorePreflightErrors[]

Type
string

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.kubeletExtraArgs

Description
kubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.
Type
object

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.taints

Description
taints specifies the taints the Node API object should be registered with. If this field is unset, i.e. nil, in the `kubeadm init` process it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node, set this field to an empty slice, i.e. `taints: []` in the YAML file. This field is solely used for Node registration.
Type
array

.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.taints[]

Description
The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
Type
object
Required
effectkey
PropertyTypeDescription
effectstring

Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.

keystring

Required. The taint key to be applied to a node.

timeAddedstring

TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.

valuestring

The taint value corresponding to the taint key.

.spec.kubeadmConfigSpec.initConfiguration.patches

Description
patches contains options related to applying patches to components deployed by kubeadm during "kubeadm init". The minimum kubernetes version needed to support Patches is v1.22
Type
object
PropertyTypeDescription
directorystring

directory is a path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd". "patchtype" can be one of "strategic" "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. These files can be written into the target directory via KubeadmConfig.Files which specifies additional files to be created on the machine, either with content inline or by referencing a secret.

.spec.kubeadmConfigSpec.initConfiguration.skipPhases

Description
skipPhases is a list of phases to skip during command execution. The list of phases can be obtained with the "kubeadm init --help" command. This option takes effect only on Kubernetes >=1.22.0.
Type
array

.spec.kubeadmConfigSpec.initConfiguration.skipPhases[]

Type
string

.spec.kubeadmConfigSpec.joinConfiguration

Description
joinConfiguration is the kubeadm configuration for the join command
Type
object
PropertyTypeDescription
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

caCertPathstring

caCertPath is the path to the SSL certificate authority used to secure comunications between node and control-plane. Defaults to "/etc/kubernetes/pki/ca.crt".

controlPlaneobject

controlPlane defines the additional control plane instance to be deployed on the joining node. If nil, no additional control plane instance will be deployed.

discoveryobject

discovery specifies the options for the kubelet to use during the TLS Bootstrap process

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

nodeRegistrationobject

nodeRegistration holds fields that relate to registering the new control-plane node to the cluster. When used in the context of control plane nodes, NodeRegistration should remain consistent across both InitConfiguration and JoinConfiguration

patchesobject

patches contains options related to applying patches to components deployed by kubeadm during "kubeadm join". The minimum kubernetes version needed to support Patches is v1.22

skipPhasesarray

skipPhases is a list of phases to skip during command execution. The list of phases can be obtained with the "kubeadm init --help" command. This option takes effect only on Kubernetes >=1.22.0.

.spec.kubeadmConfigSpec.joinConfiguration.controlPlane

Description
controlPlane defines the additional control plane instance to be deployed on the joining node. If nil, no additional control plane instance will be deployed.
Type
object
PropertyTypeDescription
localAPIEndpointobject

localAPIEndpoint represents the endpoint of the API server instance to be deployed on this node.

.spec.kubeadmConfigSpec.joinConfiguration.controlPlane.localAPIEndpoint

Description
localAPIEndpoint represents the endpoint of the API server instance to be deployed on this node.
Type
object
PropertyTypeDescription
advertiseAddressstring

advertiseAddress sets the IP address for the API server to advertise.

bindPortinteger

bindPort sets the secure port for the API Server to bind to. Defaults to 6443.

.spec.kubeadmConfigSpec.joinConfiguration.discovery

Description
discovery specifies the options for the kubelet to use during the TLS Bootstrap process
Type
object
PropertyTypeDescription
bootstrapTokenobject

bootstrapToken is used to set the options for bootstrap token based discovery BootstrapToken and File are mutually exclusive

fileobject

file is used to specify a file or URL to a kubeconfig file from which to load cluster information BootstrapToken and File are mutually exclusive

timeoutstring

timeout modifies the discovery timeout

tlsBootstrapTokenstring

tlsBootstrapToken is a token used for TLS bootstrapping. If .BootstrapToken is set, this field is defaulted to .BootstrapToken.Token, but can be overridden. If .File is set, this field must be set in case the KubeConfigFile does not contain any other authentication information

.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken

Description
bootstrapToken is used to set the options for bootstrap token based discovery BootstrapToken and File are mutually exclusive
Type
object
PropertyTypeDescription
apiServerEndpointstring

apiServerEndpoint is an IP or domain name to the API server from which info will be fetched.

caCertHashesarray

caCertHashes specifies a set of public key pins to verify when token-based discovery is used. The root CA found during discovery must match one of these values. Specifying an empty set disables root CA pinning, which can be unsafe. Each hash is specified as ":", where the only currently supported type is "sha256". This is a hex-encoded SHA-256 hash of the Subject Public Key Info (SPKI) object in DER-encoded ASN.1. These hashes can be calculated using, for example, OpenSSL: openssl x509 -pubkey -in ca.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex

tokenstring

token is a token used to validate cluster information fetched from the control-plane.

unsafeSkipCAVerificationboolean

unsafeSkipCAVerification allows token-based discovery without CA verification via CACertHashes. This can weaken the security of kubeadm since other nodes can impersonate the control-plane.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken.caCertHashes

Description
caCertHashes specifies a set of public key pins to verify when token-based discovery is used. The root CA found during discovery must match one of these values. Specifying an empty set disables root CA pinning, which can be unsafe. Each hash is specified as "<type>:<value>", where the only currently supported type is "sha256". This is a hex-encoded SHA-256 hash of the Subject Public Key Info (SPKI) object in DER-encoded ASN.1. These hashes can be calculated using, for example, OpenSSL: openssl x509 -pubkey -in ca.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken.caCertHashes[]

Type
string

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file

Description
file is used to specify a file or URL to a kubeconfig file from which to load cluster information BootstrapToken and File are mutually exclusive
Type
object
Required
kubeConfigPath
PropertyTypeDescription
kubeConfigobject

kubeConfig is used (optionally) to generate a KubeConfig based on the KubeadmConfig's information. The file is generated at the path specified in KubeConfigPath.

Host address (server field) information is automatically populated based on the Cluster's ControlPlaneEndpoint. Certificate Authority (certificate-authority-data field) is gathered from the cluster's CA secret.

kubeConfigPathstring

kubeConfigPath is used to specify the actual file path or URL to the kubeconfig file from which to load cluster information

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig

Description
kubeConfig is used (optionally) to generate a KubeConfig based on the KubeadmConfig's information. The file is generated at the path specified in KubeConfigPath. Host address (server field) information is automatically populated based on the Cluster's ControlPlaneEndpoint. Certificate Authority (certificate-authority-data field) is gathered from the cluster's CA secret.
Type
object
Required
user
PropertyTypeDescription
clusterobject

cluster contains information about how to communicate with the kubernetes cluster.

By default the following fields are automatically populated:

  • Server with the Cluster's ControlPlaneEndpoint.
  • CertificateAuthorityData with the Cluster's CA certificate.
userobject

user contains information that describes identity information. This is used to tell the kubernetes cluster who you are.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.cluster

Description
cluster contains information about how to communicate with the kubernetes cluster. By default the following fields are automatically populated: - Server with the Cluster's ControlPlaneEndpoint. - CertificateAuthorityData with the Cluster's CA certificate.
Type
object
PropertyTypeDescription
certificateAuthorityDatastring

certificateAuthorityData contains PEM-encoded certificate authority certificates.

Defaults to the Cluster's CA certificate if empty.

insecureSkipTLSVerifyboolean

insecureSkipTLSVerify skips the validity check for the server's certificate. This will make your HTTPS connections insecure.

proxyURLstring

proxyURL is the URL to the proxy to be used for all requests made by this client. URLs with "http", "https", and "socks5" schemes are supported. If this configuration is not provided or the empty string, the client attempts to construct a proxy configuration from http_proxy and https_proxy environment variables. If these environment variables are not set, the client does not attempt to proxy requests.

socks5 proxying does not currently support spdy streaming endpoints (exec, attach, port forward).

serverstring

server is the address of the kubernetes cluster (https://hostname:port).

Defaults to https:// + Cluster.Spec.ControlPlaneEndpoint.

tlsServerNamestring

tlsServerName is used to check server certificate. If TLSServerName is empty, the hostname used to contact the server is used.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user

Description
user contains information that describes identity information. This is used to tell the kubernetes cluster who you are.
Type
object
PropertyTypeDescription
authProviderobject

authProvider specifies a custom authentication plugin for the kubernetes cluster.

execobject

exec specifies a custom exec-based authentication plugin for the kubernetes cluster.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.authProvider

Description
authProvider specifies a custom authentication plugin for the kubernetes cluster.
Type
object
Required
name
PropertyTypeDescription
configobject

config holds the parameters for the authentication plugin.

namestring

name is the name of the authentication plugin.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.authProvider.config

Description
config holds the parameters for the authentication plugin.
Type
object

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec

Description
exec specifies a custom exec-based authentication plugin for the kubernetes cluster.
Type
object
Required
command
PropertyTypeDescription
apiVersionstring

apiVersion is preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input. Defaults to client.authentication.k8s.io/v1 if not set.

argsarray

args is the arguments to pass to the command when executing it.

commandstring

command to execute.

envarray

env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin.

provideClusterInfoboolean

provideClusterInfo determines whether or not to provide cluster information, which could potentially contain very large CA data, to this exec plugin as a part of the KUBERNETES_EXEC_INFO environment variable. By default, it is set to false. Package k8s.io/client-go/tools/auth/exec provides helper methods for reading this environment variable.

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.args

Description
args is the arguments to pass to the command when executing it.
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.args[]

Type
string

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.env

Description
env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin.
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.env[]

Description
KubeConfigAuthExecEnv is used for setting environment variables when executing an exec-based credential plugin.
Type
object
Required
namevalue
PropertyTypeDescription
namestring

name of the environment variable

valuestring

value of the environment variable

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration

Description
nodeRegistration holds fields that relate to registering the new control-plane node to the cluster. When used in the context of control plane nodes, NodeRegistration should remain consistent across both InitConfiguration and JoinConfiguration
Type
object
PropertyTypeDescription
criSocketstring

criSocket is used to retrieve container runtime info. This information will be annotated to the Node API object, for later re-use

ignorePreflightErrorsarray

ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.

imagePullPolicystring

imagePullPolicy specifies the policy for image pulling during kubeadm "init" and "join" operations. The value of this field must be one of "Always", "IfNotPresent" or "Never". Defaults to "IfNotPresent". This can be used only with Kubernetes version equal to 1.22 and later.

imagePullSerialboolean

imagePullSerial specifies if image pulling performed by kubeadm must be done serially or in parallel. This option takes effect only on Kubernetes >=1.31.0. Default: true (defaulted in kubeadm)

kubeletExtraArgsobject

kubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.

namestring

name is the .Metadata.Name field of the Node API object that will be created in this kubeadm init or kubeadm join operation. This field is also used in the CommonName field of the kubelet's client certificate to the API server. Defaults to the hostname of the node if not provided.

taintsarray

taints specifies the taints the Node API object should be registered with. If this field is unset, i.e. nil, in the kubeadm init process it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node, set this field to an empty slice, i.e. taints: [] in the YAML file. This field is solely used for Node registration.

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.ignorePreflightErrors

Description
ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.ignorePreflightErrors[]

Type
string

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.kubeletExtraArgs

Description
kubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.
Type
object

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.taints

Description
taints specifies the taints the Node API object should be registered with. If this field is unset, i.e. nil, in the `kubeadm init` process it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node, set this field to an empty slice, i.e. `taints: []` in the YAML file. This field is solely used for Node registration.
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.taints[]

Description
The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
Type
object
Required
effectkey
PropertyTypeDescription
effectstring

Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.

keystring

Required. The taint key to be applied to a node.

timeAddedstring

TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.

valuestring

The taint value corresponding to the taint key.

.spec.kubeadmConfigSpec.joinConfiguration.patches

Description
patches contains options related to applying patches to components deployed by kubeadm during "kubeadm join". The minimum kubernetes version needed to support Patches is v1.22
Type
object
PropertyTypeDescription
directorystring

directory is a path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd". "patchtype" can be one of "strategic" "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. These files can be written into the target directory via KubeadmConfig.Files which specifies additional files to be created on the machine, either with content inline or by referencing a secret.

.spec.kubeadmConfigSpec.joinConfiguration.skipPhases

Description
skipPhases is a list of phases to skip during command execution. The list of phases can be obtained with the "kubeadm init --help" command. This option takes effect only on Kubernetes >=1.22.0.
Type
array

.spec.kubeadmConfigSpec.joinConfiguration.skipPhases[]

Type
string

.spec.kubeadmConfigSpec.mounts

Description
mounts specifies a list of mount points to be setup.
Type
array

.spec.kubeadmConfigSpec.mounts[]

Description
MountPoints defines input for generated mounts in cloud-init.
Type
array

.spec.kubeadmConfigSpec.ntp

Description
ntp specifies NTP configuration
Type
object
PropertyTypeDescription
enabledboolean

enabled specifies whether NTP should be enabled

serversarray

servers specifies which NTP servers to use

.spec.kubeadmConfigSpec.ntp.servers

Description
servers specifies which NTP servers to use
Type
array

.spec.kubeadmConfigSpec.ntp.servers[]

Type
string

.spec.kubeadmConfigSpec.postKubeadmCommands

Description
postKubeadmCommands specifies extra commands to run after kubeadm runs. With cloud-init, this is appended to the runcmd module configuration, and is typically executed in the cloud-final.service systemd unit. In Ignition, this is appended to /etc/kubeadm.sh.
Type
array

.spec.kubeadmConfigSpec.postKubeadmCommands[]

Type
string

.spec.kubeadmConfigSpec.preKubeadmCommands

Description
preKubeadmCommands specifies extra commands to run before kubeadm runs. With cloud-init, this is prepended to the runcmd module configuration, and is typically executed in the cloud-final.service systemd unit. In Ignition, this is prepended to /etc/kubeadm.sh.
Type
array

.spec.kubeadmConfigSpec.preKubeadmCommands[]

Type
string

.spec.kubeadmConfigSpec.users

Description
users specifies extra users to add
Type
array

.spec.kubeadmConfigSpec.users[]

Description
User defines the input for a generated user in cloud-init.
Type
object
Required
name
PropertyTypeDescription
gecosstring

gecos specifies the gecos to use for the user

groupsstring

groups specifies the additional groups for the user

homeDirstring

homeDir specifies the home directory to use for the user

inactiveboolean

inactive specifies whether to mark the user as inactive

lockPasswordboolean

lockPassword specifies if password login should be disabled

namestring

name specifies the user name

passwdstring

passwd specifies a hashed password for the user

passwdFromobject

passwdFrom is a referenced source of passwd to populate the passwd.

primaryGroupstring

primaryGroup specifies the primary group for the user

shellstring

shell specifies the user's shell

sshAuthorizedKeysarray

sshAuthorizedKeys specifies a list of ssh authorized keys for the user

sudostring

sudo specifies a sudo role for the user

.spec.kubeadmConfigSpec.users[].passwdFrom

Description
passwdFrom is a referenced source of passwd to populate the passwd.
Type
object
Required
secret
PropertyTypeDescription
secretobject

secret represents a secret that should populate this password.

.spec.kubeadmConfigSpec.users[].passwdFrom.secret

Description
secret represents a secret that should populate this password.
Type
object
Required
keyname
PropertyTypeDescription
keystring

key is the key in the secret's data map for this value.

namestring

name of the secret in the KubeadmBootstrapConfig's namespace to use.

.spec.kubeadmConfigSpec.users[].sshAuthorizedKeys

Description
sshAuthorizedKeys specifies a list of ssh authorized keys for the user
Type
array

.spec.kubeadmConfigSpec.users[].sshAuthorizedKeys[]

Type
string

.spec.machineNamingStrategy

Description
machineNamingStrategy allows changing the naming pattern used when creating Machines. InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines.
Type
object
PropertyTypeDescription
templatestring

template defines the template to use for generating the names of the Machine objects. If not defined, it will fallback to {{ .kubeadmControlPlane.name }}-{{ .random }}. If the generated name string exceeds 63 characters, it will be trimmed to 58 characters and will get concatenated with a random suffix of length 5. Length of the template string must not exceed 256 characters. The template allows the following variables .cluster.name, .kubeadmControlPlane.name and .random. The variable .cluster.name retrieves the name of the cluster object that owns the Machines being created. The variable .kubeadmControlPlane.name retrieves the name of the KubeadmControlPlane object that owns the Machines being created. The variable .random is substituted with random alphanumeric string, without vowels, of length 5. This variable is required part of the template. If not provided, validation will fail.

.spec.machineTemplate

Description
machineTemplate contains information about how machines should be shaped when creating or updating a control plane.
Type
object
Required
infrastructureRef
PropertyTypeDescription
infrastructureRefobject

infrastructureRef is a required reference to a custom resource offered by an infrastructure provider.

metadataObjectMeta

metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

nodeDeletionTimeoutstring

nodeDeletionTimeout defines how long the machine controller will attempt to delete the Node that the Machine hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely. If no value is provided, the default value for this property of the Machine resource will be used.

nodeDrainTimeoutstring

nodeDrainTimeout is the total amount of time that the controller will spend on draining a controlplane node The default value is 0, meaning that the node can be drained without any time limitations. NOTE: NodeDrainTimeout is different from kubectl drain --timeout

nodeVolumeDetachTimeoutstring

nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations.

readinessGatesarray

readinessGates specifies additional conditions to include when evaluating Machine Ready condition; KubeadmControlPlane will always add readinessGates for the condition it is setting on the Machine: APIServerPodHealthy, SchedulerPodHealthy, ControllerManagerPodHealthy, and if etcd is managed by CKP also EtcdPodHealthy, EtcdMemberHealthy.

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.

taintsarray

The list of the taints to be applied to the corresponding Node in additive manner. This list will not overwrite any other taints added to the Node on an ongoing basis by other entities. These taints should be actively reconciled e.g. if you ask the machine controller to apply a taint and then manually remove the taint the machine controller will put it back) but not have the machine controller remove any taints

.spec.machineTemplate.infrastructureRef

Description
infrastructureRef is a required reference to a custom resource offered by an infrastructure provider.
Type
object
PropertyTypeDescription
apiVersionstring

API version of the referent.

fieldPathstring

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.

kindstring

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

namestring

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

namespacestring

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceVersionstring

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

uidstring

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

.spec.machineTemplate.readinessGates

Description
readinessGates specifies additional conditions to include when evaluating Machine Ready condition; KubeadmControlPlane will always add readinessGates for the condition it is setting on the Machine: APIServerPodHealthy, SchedulerPodHealthy, ControllerManagerPodHealthy, and if etcd is managed by CKP also EtcdPodHealthy, EtcdMemberHealthy. 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.
Type
array

.spec.machineTemplate.readinessGates[]

Description
MachineReadinessGate contains the type of a Machine condition to be used as a readiness gate.
Type
object
Required
conditionType
PropertyTypeDescription
conditionTypestring

conditionType refers to a condition with matching type in the Machine's condition list. If the conditions doesn't exist, it will be treated as unknown. Note: Both Cluster API conditions or conditions added by 3rd party controllers can be used as readiness gates.

polaritystring

polarity of the conditionType specified in this readinessGate. Valid values are Positive, Negative and omitted. When omitted, the default behaviour will be Positive. A positive polarity means that the condition should report a true status under normal conditions. A negative polarity means that the condition should report a false status under normal conditions.

.spec.machineTemplate.taints

Description
The list of the taints to be applied to the corresponding Node in additive manner. This list will not overwrite any other taints added to the Node on an ongoing basis by other entities. These taints should be actively reconciled e.g. if you ask the machine controller to apply a taint and then manually remove the taint the machine controller will put it back) but not have the machine controller remove any taints
Type
array

.spec.machineTemplate.taints[]

Description
The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
Type
object
Required
effectkey
PropertyTypeDescription
effectstring

Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.

keystring

Required. The taint key to be applied to a node.

timeAddedstring

TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.

valuestring

The taint value corresponding to the taint key.

.spec.remediationStrategy

Description
remediationStrategy is the RemediationStrategy that controls how control plane machine remediation happens.
Type
object
PropertyTypeDescription
maxRetryinteger

maxRetry is the Max number of retries while attempting to remediate an unhealthy machine. A retry happens when a machine that was created as a replacement for an unhealthy machine also fails. For example, given a control plane with three machines M1, M2, M3:

M1 become unhealthy; remediation happens, and M1-1 is created as a replacement.
If M1-1 (replacement of M1) has problems while bootstrapping it will become unhealthy, and then be
remediated; such operation is considered a retry, remediation-retry #1.
If M1-2 (replacement of M1-1) becomes unhealthy, remediation-retry #2 will happen, etc.

A retry could happen only after RetryPeriod from the previous retry. If a machine is marked as unhealthy after MinHealthyPeriod from the previous remediation expired, this is not considered a retry anymore because the new issue is assumed unrelated from the previous one.

If not set, the remedation will be retried infinitely.

minHealthyPeriodstring

minHealthyPeriod defines the duration after which KCP will consider any failure to a machine unrelated from the previous one. In this case the remediation is not considered a retry anymore, and thus the retry counter restarts from 0. For example, assuming MinHealthyPeriod is set to 1h (default)

M1 become unhealthy; remediation happens, and M1-1 is created as a replacement.
If M1-1 (replacement of M1) has problems within the 1hr after the creation, also
this machine will be remediated and this operation is considered a retry - a problem related
to the original issue happened to M1 -.

If instead the problem on M1-1 is happening after MinHealthyPeriod expired, e.g. four days after
m1-1 has been created as a remediation of M1, the problem on M1-1 is considered unrelated to
the original issue happened to M1.

If not set, this value is defaulted to 1h.

retryPeriodstring

retryPeriod is the duration that KCP should wait before remediating a machine being created as a replacement for an unhealthy machine (a retry).

If not set, a retry will happen immediately.

.spec.rolloutBefore

Description
rolloutBefore is a field to indicate a rollout should be performed if the specified criteria is met.
Type
object
PropertyTypeDescription
certificatesExpiryDaysinteger

certificatesExpiryDays indicates a rollout needs to be performed if the certificates of the machine will expire within the specified days.

.spec.rolloutStrategy

Description
rolloutStrategy is the RolloutStrategy to use to replace control plane machines with new ones.
Type
object
PropertyTypeDescription
rollingUpdateobject

rollingUpdate is the rolling update config params. Present only if RolloutStrategyType = RollingUpdate.

typestring

type of rollout. Currently the only supported strategy is "RollingUpdate". Default is RollingUpdate.

.spec.rolloutStrategy.rollingUpdate

Description
rollingUpdate is the rolling update config params. Present only if RolloutStrategyType = RollingUpdate.
Type
object
PropertyTypeDescription
maxSurge

maxSurge is the maximum number of control planes that can be scheduled above or under the desired number of control planes. Value can be an absolute number 1 or 0. Defaults to 1. Example: when this is set to 1, the control plane can be scaled up immediately when the rolling update starts.

.status

Description
status is the observed state of KubeadmControlPlane.
Type
object
PropertyTypeDescription
conditionsarray

conditions defines current service state of the KubeadmControlPlane.

failureMessagestring

failureMessage indicates that there is a terminal problem reconciling the state, and will be set to a descriptive error message.

Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.

failureReasonstring

failureReason indicates that there is a terminal problem reconciling the state, and will be set to a token value suitable for programmatic interpretation.

Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.

initializedboolean

initialized denotes that the KubeadmControlPlane API Server is initialized and thus it can accept requests. NOTE: this field is part of the Cluster API contract and it is used to orchestrate provisioning. The value of this field is never updated after provisioning is completed. Please use conditions to check the operational state of the control plane.

lastRemediationobject

lastRemediation stores info about last remediation performed.

observedGenerationinteger

observedGeneration is the latest generation observed by the controller.

readyboolean

ready denotes that the KubeadmControlPlane API Server became ready during initial provisioning to receive requests. NOTE: this field is part of the Cluster API contract and it is used to orchestrate provisioning. The value of this field is never updated after provisioning is completed. Please use conditions to check the operational state of the control plane.

readyReplicasinteger

readyReplicas is the total number of fully running and ready control plane machines.

replicasinteger

replicas is the total number of non-terminated machines targeted by this control plane (their labels match the selector).

selectorstring

selector is the label selector in string format to avoid introspection by clients, and is used to provide the CRD-based integration for the scale subresource and additional integrations for things like kubectl describe.. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors

unavailableReplicasinteger

unavailableReplicas is the total number of unavailable machines targeted by this control plane. This is the total number of machines that are still required for the deployment to have 100% available capacity. They may either be machines that are running but not yet ready or machines that still have not been created.

Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.

updatedReplicasinteger

updatedReplicas is the total number of non-terminated machines targeted by this control plane that have the desired template spec.

v1beta2object

v1beta2 groups all the fields that will be added or modified in KubeadmControlPlane's status with the V1Beta2 version.

versionstring

version represents the minimum Kubernetes version for the control plane machines in the cluster.

.status.conditions

Description
conditions defines current service state of the KubeadmControlPlane.
Type
array

.status.conditions[]

Description
Condition defines an observation of a Cluster API resource operational state.
Type
object
Required
lastTransitionTimestatustype
PropertyTypeDescription
lastTransitionTimestring

lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.

messagestring

message is a human readable message indicating details about the transition. This field may be empty.

reasonstring

reason is the reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may be empty.

severitystring

severity provides an explicit classification of Reason code, so the users or machines can immediately understand the current situation and act accordingly. The Severity field MUST be set only when Status=False.

statusstring

status of the condition, one of True, False, Unknown.

typestring

type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important.

.status.lastRemediation

Description
lastRemediation stores info about last remediation performed.
Type
object
Required
machineretryCounttimestamp
PropertyTypeDescription
machinestring

machine is the machine name of the latest machine being remediated.

retryCountinteger

retryCount used to keep track of remediation retry for the last remediated machine. A retry happens when a machine that was created as a replacement for an unhealthy machine also fails.

timestampstring

timestamp is when last remediation happened. It is represented in RFC3339 form and is in UTC.

.status.v1beta2

Description
v1beta2 groups all the fields that will be added or modified in KubeadmControlPlane's status with the V1Beta2 version.
Type
object
PropertyTypeDescription
availableReplicasinteger

availableReplicas is the number of available replicas targeted by this KubeadmControlPlane. A machine is considered available when Machine's Available condition is true.

conditionsarray

conditions represents the observations of a KubeadmControlPlane's current state. Known condition types are Available, CertificatesAvailable, EtcdClusterAvailable, MachinesReady, MachinesUpToDate, ScalingUp, ScalingDown, Remediating, Deleting, Paused.

readyReplicasinteger

readyReplicas is the number of ready replicas for this KubeadmControlPlane. A machine is considered ready when Machine's Ready condition is true.

upToDateReplicasinteger

upToDateReplicas is the number of up-to-date replicas targeted by this KubeadmControlPlane. A machine is considered up-to-date when Machine's UpToDate condition is true.

.status.v1beta2.conditions

Description
conditions represents the observations of a KubeadmControlPlane's current state. Known condition types are Available, CertificatesAvailable, EtcdClusterAvailable, MachinesReady, MachinesUpToDate, ScalingUp, ScalingDown, Remediating, Deleting, Paused.
Type
array

.status.v1beta2.conditions[]

Description
Condition contains details for one aspect of the current state of this API Resource.
Type
object
Required
lastTransitionTimemessagereasonstatustype
PropertyTypeDescription
lastTransitionTimestring

lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.

messagestring

message is a human readable message indicating details about the transition. This may be an empty string.

observedGenerationinteger

observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.

reasonstring

reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.

statusstring

status of the condition, one of True, False, Unknown.

typestring

type of condition in CamelCase or in foo.example.com/CamelCase.

API Endpoints

The following API endpoints are available:

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

/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanes

HTTP method
DELETE
Description
delete collection of KubeadmControlPlane
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
list objects of kind KubeadmControlPlane
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlaneList schema
401 - UnauthorizedEmpty
HTTP method
POST
Description
create a new KubeadmControlPlane
Query parameters
ParameterTypeDescription
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.
Body parameters
ParameterTypeDescription
bodyKubeadmControlPlane schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
201 - CreatedKubeadmControlPlane schema
202 - AcceptedKubeadmControlPlane schema
401 - UnauthorizedEmpty

/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanes/{name}

HTTP method
DELETE
Description
delete the specified KubeadmControlPlane
Query parameters
ParameterTypeDescription
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 responses
HTTP codeResponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
read the specified KubeadmControlPlane
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update the specified KubeadmControlPlane
Query parameters
ParameterTypeDescription
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 responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace the specified KubeadmControlPlane
Query parameters
ParameterTypeDescription
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.
Body parameters
ParameterTypeDescription
bodyKubeadmControlPlane schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
201 - CreatedKubeadmControlPlane schema
401 - UnauthorizedEmpty

/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanes/{name}/status

HTTP method
GET
Description
read status of the specified KubeadmControlPlane
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update status of the specified KubeadmControlPlane
Query parameters
ParameterTypeDescription
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 responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace status of the specified KubeadmControlPlane
Query parameters
ParameterTypeDescription
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.
Body parameters
ParameterTypeDescription
bodyKubeadmControlPlane schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKKubeadmControlPlane schema
201 - CreatedKubeadmControlPlane schema
401 - UnauthorizedEmpty