KubeadmControlPlaneTemplate [controlplane.cluster.x-k8s.io/v1beta1]
- 描述
- KubeadmControlPlaneTemplate is the Schema for the kubeadmcontrolplanetemplates API.
- 类型
object
规格
.spec
- 描述
- spec is the desired state of KubeadmControlPlaneTemplate.
- 类型
object- 必填
template
.spec.template
- 描述
- template defines the desired state of KubeadmControlPlaneTemplate.
- 类型
object- 必填
spec
.spec.template.spec
- 描述
- spec is the desired state of KubeadmControlPlaneTemplateResource.
- 类型
object- 必填
kubeadmConfigSpec
.spec.template.spec.kubeadmConfigSpec
- 描述
- kubeadmConfigSpec is a KubeadmConfigSpec to use for initializing and joining machines to the control plane.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.bootCommands
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.bootCommands[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration
- 描述
- clusterConfiguration along with InitConfiguration are the configurations necessary for the init command
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer
- 描述
- apiServer contains extra settings for the API server control plane component
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.certSANs
- 描述
- certSANs sets extra Subject Alternative Names for the API Server signing cert.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.certSANs[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraArgs
- 描述
- extraArgs is an extra set of flags to pass to the control plane component.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraEnvs[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraVolumes
- 描述
- extraVolumes is an extra set of host volumes, mounted to the control plane component.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.apiServer.extraVolumes[]
- 描述
- HostPathMount contains elements describing volumes that are mounted from the host.
- 类型
object- 必填
hostPathmountPathname
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager
- 描述
- controllerManager contains extra settings for the controller manager control plane component
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraArgs
- 描述
- extraArgs is an extra set of flags to pass to the control plane component.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraEnvs[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraVolumes
- 描述
- extraVolumes is an extra set of host volumes, mounted to the control plane component.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.controllerManager.extraVolumes[]
- 描述
- HostPathMount contains elements describing volumes that are mounted from the host.
- 类型
object- 必填
hostPathmountPathname
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.dns
- 描述
- dns defines the options for the DNS add-on installed in the cluster.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd
- 描述
- etcd holds configuration for etcd. NB: This value defaults to a Local (stacked) etcd
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external
- 描述
- external describes how to connect to an external etcd cluster Local and External are mutually exclusive
- 类型
object- 必填
caFilecertFileendpointskeyFile
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external.endpoints
- 描述
- endpoints of etcd members. Required for ExternalEtcd.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.external.endpoints[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local
- 描述
- local provides configuration knobs for configuring the local etcd instance Local and External are mutually exclusive
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraArgs
- 描述
- extraArgs are extra arguments provided to the etcd binary when run inside a static pod.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.extraEnvs[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.peerCertSANs
- 描述
- peerCertSANs sets extra Subject Alternative Names for the etcd peer signing cert.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.peerCertSANs[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.serverCertSANs
- 描述
- serverCertSANs sets extra Subject Alternative Names for the etcd server signing cert.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.etcd.local.serverCertSANs[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.featureGates
- 描述
- featureGates enabled by the user.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.networking
- 描述
- networking holds configuration for the networking topology of the cluster. NB: This value defaults to the Cluster object spec.clusterNetwork.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler
- 描述
- scheduler contains extra settings for the scheduler control plane component
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraArgs
- 描述
- extraArgs is an extra set of flags to pass to the control plane component.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraEnvs[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraVolumes
- 描述
- extraVolumes is an extra set of host volumes, mounted to the control plane component.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.clusterConfiguration.scheduler.extraVolumes[]
- 描述
- HostPathMount contains elements describing volumes that are mounted from the host.
- 类型
object- 必填
hostPathmountPathname
.spec.template.spec.kubeadmConfigSpec.diskSetup
- 描述
- diskSetup specifies options for the creation of partition tables and file systems on devices.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.diskSetup.filesystems
- 描述
- filesystems specifies the list of file systems to setup.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.diskSetup.filesystems[]
- 描述
- Filesystem defines the file systems to be created.
- 类型
object- 必填
devicefilesystem
.spec.template.spec.kubeadmConfigSpec.diskSetup.filesystems[].extraOpts
- 描述
- extraOpts defined extra options to add to the command for creating the file system.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.diskSetup.filesystems[].extraOpts[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.diskSetup.partitions
- 描述
- partitions specifies the list of the partitions to setup.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.diskSetup.partitions[]
- 描述
- Partition defines how to create and layout a partition.
- 类型
object- 必填
devicelayout
.spec.template.spec.kubeadmConfigSpec.files
- 描述
- files specifies extra files to be passed to user_data upon creation.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.files[]
- 描述
- File defines the input for generating write_files in cloud-init.
- 类型
object- 必填
path
.spec.template.spec.kubeadmConfigSpec.files[].contentFrom
- 描述
- contentFrom is a referenced source of content to populate the file.
- 类型
object- 必填
secret
.spec.template.spec.kubeadmConfigSpec.files[].contentFrom.secret
- 描述
- secret represents a secret that should populate this file.
- 类型
object- 必填
keyname
.spec.template.spec.kubeadmConfigSpec.ignition
- 描述
- ignition contains Ignition specific configuration.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.ignition.containerLinuxConfig
- 描述
- containerLinuxConfig contains CLC specific configuration.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration
- 描述
- initConfiguration along with ClusterConfiguration are the configurations necessary for the init command
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens
- 描述
- 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
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[]
- 描述
- BootstrapToken describes one bootstrap token, stored as a Secret in the cluster.
- 类型
object- 必填
token
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].groups
- 描述
- groups specifies the extra groups that this token will authenticate as when/if used for authentication
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].groups[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].usages
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.bootstrapTokens[].usages[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.initConfiguration.localAPIEndpoint
- 描述
- 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.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration
- 描述
- 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
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.ignorePreflightErrors
- 描述
- ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.ignorePreflightErrors[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.kubeletExtraArgs
- 描述
- 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.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.taints
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.nodeRegistration.taints[]
- 描述
- The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
- 类型
object- 必填
effectkey
.spec.template.spec.kubeadmConfigSpec.initConfiguration.patches
- 描述
- 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
- 类型
object
.spec.template.spec.kubeadmConfigSpec.initConfiguration.skipPhases
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.initConfiguration.skipPhases[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.joinConfiguration
- 描述
- joinConfiguration is the kubeadm configuration for the join command
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.controlPlane
- 描述
- controlPlane defines the additional control plane instance to be deployed on the joining node. If nil, no additional control plane instance will be deployed.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.controlPlane.localAPIEndpoint
- 描述
- localAPIEndpoint represents the endpoint of the API server instance to be deployed on this node.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery
- 描述
- discovery specifies the options for the kubelet to use during the TLS Bootstrap process
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken
- 描述
- bootstrapToken is used to set the options for bootstrap token based discovery BootstrapToken and File are mutually exclusive
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken.caCertHashes
- 描述
- 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
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.bootstrapToken.caCertHashes[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file
- 描述
- 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
- 类型
object- 必填
kubeConfigPath
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig
- 描述
- 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.
- 类型
object- 必填
user
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.cluster
- 描述
- 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.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user
- 描述
- user contains information that describes identity information. This is used to tell the kubernetes cluster who you are.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.authProvider
- 描述
- authProvider specifies a custom authentication plugin for the kubernetes cluster.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.authProvider.config
- 描述
- config holds the parameters for the authentication plugin.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec
- 描述
- exec specifies a custom exec-based authentication plugin for the kubernetes cluster.
- 类型
object- 必填
command
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.args
- 描述
- args is the arguments to pass to the command when executing it.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.args[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.env
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.discovery.file.kubeConfig.user.exec.env[]
- 描述
- KubeConfigAuthExecEnv is used for setting environment variables when executing an exec-based credential plugin.
- 类型
object- 必填
namevalue
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration
- 描述
- 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
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.ignorePreflightErrors
- 描述
- ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.ignorePreflightErrors[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.kubeletExtraArgs
- 描述
- 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.
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.taints
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.nodeRegistration.taints[]
- 描述
- The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
- 类型
object- 必填
effectkey
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.patches
- 描述
- 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
- 类型
object
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.skipPhases
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.joinConfiguration.skipPhases[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.mounts
- 描述
- mounts specifies a list of mount points to be setup.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.mounts[]
- 描述
- MountPoints defines input for generated mounts in cloud-init.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.ntp
- 描述
- ntp specifies NTP configuration
- 类型
object
.spec.template.spec.kubeadmConfigSpec.ntp.servers
- 描述
- servers specifies which NTP servers to use
- 类型
array
.spec.template.spec.kubeadmConfigSpec.ntp.servers[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.postKubeadmCommands
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.postKubeadmCommands[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.preKubeadmCommands
- 描述
- 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.
- 类型
array
.spec.template.spec.kubeadmConfigSpec.preKubeadmCommands[]
- 类型
string
.spec.template.spec.kubeadmConfigSpec.users
- 描述
- users specifies extra users to add
- 类型
array
.spec.template.spec.kubeadmConfigSpec.users[]
- 描述
- User defines the input for a generated user in cloud-init.
- 类型
object- 必填
name
.spec.template.spec.kubeadmConfigSpec.users[].passwdFrom
- 描述
- passwdFrom is a referenced source of passwd to populate the passwd.
- 类型
object- 必填
secret
.spec.template.spec.kubeadmConfigSpec.users[].passwdFrom.secret
- 描述
- secret represents a secret that should populate this password.
- 类型
object- 必填
keyname
.spec.template.spec.kubeadmConfigSpec.users[].sshAuthorizedKeys
- 描述
- sshAuthorizedKeys specifies a list of ssh authorized keys for the user
- 类型
array
.spec.template.spec.kubeadmConfigSpec.users[].sshAuthorizedKeys[]
- 类型
string
.spec.template.spec.machineNamingStrategy
- 描述
- machineNamingStrategy allows changing the naming pattern used when creating Machines. InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines.
- 类型
object
.spec.template.spec.machineTemplate
- 描述
- machineTemplate contains information about how machines should be shaped when creating or updating a control plane.
- 类型
object
.spec.template.spec.remediationStrategy
- 描述
- remediationStrategy is the RemediationStrategy that controls how control plane machine remediation happens.
- 类型
object
.spec.template.spec.rolloutBefore
- 描述
- rolloutBefore is a field to indicate a rollout should be performed if the specified criteria is met.
- 类型
object
.spec.template.spec.rolloutStrategy
- 描述
- rolloutStrategy is the RolloutStrategy to use to replace control plane machines with new ones.
- 类型
object
.spec.template.spec.rolloutStrategy.rollingUpdate
- 描述
- rollingUpdate is the rolling update config params. Present only if RolloutStrategyType = RollingUpdate.
- 类型
object
API 端点
可用的 API 端点如下:
/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanetemplatesDELETE: delete collection of KubeadmControlPlaneTemplateGET: list objects of kind KubeadmControlPlaneTemplatePOST: create a new KubeadmControlPlaneTemplate
/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanetemplates/{name}DELETE: delete the specified KubeadmControlPlaneTemplateGET: read the specified KubeadmControlPlaneTemplatePATCH: partially update the specified KubeadmControlPlaneTemplatePUT: replace the specified KubeadmControlPlaneTemplate
/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanetemplates
- HTTP 方法
DELETE- 描述
- delete collection of KubeadmControlPlaneTemplate
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind KubeadmControlPlaneTemplate
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new KubeadmControlPlaneTemplate
- 查询参数
- 请求体参数
- HTTP 响应
/apis/controlplane.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/kubeadmcontrolplanetemplates/{name}
- HTTP 方法
DELETE- 描述
- delete the specified KubeadmControlPlaneTemplate
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified KubeadmControlPlaneTemplate
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified KubeadmControlPlaneTemplate
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified KubeadmControlPlaneTemplate
- 查询参数
- 请求体参数
- HTTP 响应