Module for kubeadm :maintainer: Alberto Planas <aplanas@suse.com> :maturity: new :depends: None :platform: Linux
New in version 3001.
Renews certificates for a Kubernetes cluster
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.alpha_certs_renew
New in version 3001.
Outputs a kubeconfig file for an additional user
The name of the user. It will be used as the CN if client certificates are created
The IP address the API server is accessible on
The port the API server is accessible on (default 6443)
The path where certificates are stored (default "/etc/kubernetes/pki")
The organization of the client certificate
The token that show be used as the authentication mechanism for this kubeconfig, instead of client certificates
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.alpha_kubeconfig_user client_name=user
New in version 3001.
Downloads the kubelet configuration from the cluster ConfigMap kubelet-config-1.X
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The desired version for the kubelet
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.alpha_kubelet_config_download
salt '*' kubeadm.alpha_kubelet_config_download kubelet_version='1.14.0'
New in version 3001.
Enables or updates dynamic kubelet configuration for a node
Name of the node that should enable the dynamic kubelet configuration
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The desired version for the kubelet
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.alpha_kubelet_config_enable_dynamic node-1
New in version 3001.
Converts a static Pod-hosted control plane into a selt-hosted one
The path where certificates are stored (default "/etc/kubernetes/pki")
Path to kubeadm configuration file
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
Enable storing certs in secrets
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.alpha_selfhost_pivot
New in version 3001.
Print a list of images kubeadm will use
Path to kubeadm configuration file
A set of key=value pairs that describe feature gates for various features
Choose a specifig Kubernetes version for the control plane (default "stable-1")
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_images_list
New in version 3001.
Pull images used by kubeadm
Path to kubeadm configuration file
Path to the CRI socket to connect
A set of key=value pairs that describe feature gates for various features
Choose a specifig Kubernetes version for the control plane (default "stable-1")
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_images_pull
New in version 3001.
Read an older version of the kubeadm configuration API types from a file, and output the similar config object for the newer version
Path to the kubeadm config file that is usin the old API version and should be converted
Path to the resulting equivalent kubeadm config file using the new API version. If not specified the output will be returned
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_migrate /oldconfig.cfg
New in version 3001.
Return default init configuration, that can be used for 'kubeadm init'
A comma-separated list for component config API object to print the default values for (valid values: KubeProxyConfiguration, KubeletConfiguration)
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_print_init_defaults
New in version 3001.
Return default join configuration, that can be used for 'kubeadm join'
A comma-separated list for component config API object to print the default values for (valid values: KubeProxyConfiguration, KubeletConfiguration)
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_print_join_defaults
New in version 3001.
Upload a configuration file to the in-cluster ConfigMap for kubeadm configuration
Path to a kubeadm configuration file
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_upload_from_file /config.cfg
New in version 3001.
Create the in-cluster configuration file for the first time using flags
The IP address the API server will advertise it's listening on
The port the API server is accessible on (default 6443)
Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate
The path where to save and store the certificates (default "/etc/kubernetes/pki")
Path to the CRI socket to connect
A set of key=value pairs that describe feature gates for various features
Choose a specifig Kubernetes version for the control plane (default "stable-1")
Specify the node name
Specify range of IP addresses for the pod network
Use alternative range of IP address for service VIPs (default "10.96.0.0/12")
Use alternative domain for services (default "cluster.local")
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_upload_from_flags
New in version 3001.
View the kubeadm configuration stored inside the cluster
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.config_view
New in version 3001.
Command to set up the Kubernetes control plane
The IP address the API server will advertise it's listening on
The port the API server is accessible on (default 6443)
Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate
The path where to save and store the certificates (default "/etc/kubernetes/pki")
Key used to encrypt the control-plane certificates in the kubeadm-certs Secret
Path to a kubeadm configuration file
Specify a stable IP address or DNS name for the control plane
Path to the CRI socket to connect
Upload control-plane certificate to the kubeadm-certs Secret. ( kubeadm version =< 1.16 )
Upload control-plane certificate to the kubeadm-certs Secret. ( kubeadm version > 1.16 )
A set of key=value pairs that describe feature gates for various features
A list of checks whose errors will be shown as warnings
Choose a container registry to pull control plane images from
Choose a specifig Kubernetes version for the control plane (default "stable-1")
Specify the node name
Specify range of IP addresses for the pod network
Use alternative range of IP address for service VIPs (default "10.96.0.0/12")
Use alternative domain for services (default "cluster.local")
Don't print the key used to encrypt the control-plane certificates
List of phases to be skipped
Skip printing of the default bootstrap token generated by 'kubeadm init'
The token to use for establishing bidirectional trust between nodes and control-plane nodes. The token must match a regular expression, that by default is [a-z0-9]{6}.[a-z0-9]{16}
The duration defore the token is automatically deleted (1s, 2m, 3h). If set to '0' the token will never expire. Default value is 24h0m0s
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.init pod_network_cidr='10.244.0.0/16'
New in version 3001.
Command to join to an existing cluster
IP address or domain name and port of the API Server
If the node should host a new control plane instance, the IP address the API Server will advertise it's listening on
If the node should host a new control plane instance, the port the API Server to bind to (default 6443)
Use this key to decrypt the certificate secrets uploaded by init
Path to a kubeadm configuration file
Path to the CRI socket to connect
For file-based discovery, a file or URL from which to load cluster information
For token-based discovery, the token used to validate cluster information fetched from the API Server
For token-based discovery, validate that the root CA public key matches this hash (format: "<type>:<value>")
For token-based discovery, allow joining without 'discovery-token-ca-cert-hash' pinning
Create a new control plane instance on this node (kubeadm version =< 1.16)
Create a new control plane instance on this node (kubeadm version > 1.16)
A list of checks whose errors will be shown as warnings
Specify the node name
List of phases to be skipped
Specify the token used to temporarily authenticate with the Kubernetes Control Plane while joining the node
Use this token for both discovery-token and tls-bootstrap-token when those values are not provided
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.join 10.160.65.165:6443 token='token'
New in version 3001.
Return the parameters required for joining into the cluster
If the token bucket is empty and this parameter is True, a new token will be created.
CLI Example:
salt '*' kubeadm.join_params
salt '*' kubeadm.join_params create_if_needed=True
New in version 3001.
Revert any changes made to this host by 'kubeadm init' or 'kubeadm join'
The path to the directory where the certificates are stored (default "/etc/kubernetes/pki")
Path to the CRI socket to connect
A list of checks whose errors will be shown as warnings
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.join 10.160.65.165:6443 token='token'
New in version 3001.
Create bootstrap tokens on the server
Token to write, if None one will be generated. The token must match a regular expression, that by default is [a-z0-9]{6}.[a-z0-9]{16}
Path to kubeadm configuration file
A human friendly description of how this token is used
List of extra groups that this token will authenticate, default to ['system:bootstrappers:kubeadm:default-node-token']
The duration defore the token is automatically deleted (1s, 2m, 3h). If set to '0' the token will never expire. Default value is 24h0m0s
Describes the ways in which this token can be used. The default value is ['signing', 'authentication']
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.token_create
salt '*' kubeadm.token_create a1b2c.0123456789abcdef
salt '*' kubeadm.token_create ttl='6h'
salt '*' kubeadm.token_create usages="['signing']"
New in version 3001.
Delete bootstrap tokens on the server
Token to write, if None one will be generated. The token must match a regular expression, that by default is [a-z0-9]{6}.[a-z0-9]{16}
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.token_delete a1b2c
salt '*' kubeadm.token_create a1b2c.0123456789abcdef
New in version 3001.
Generate and return a bootstrap token, but do not create it on the server
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.token_generate
New in version 3001.
List bootstrap tokens on the server
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.token_list
New in version 3001.
Return the version of kubeadm
The kubeconfig file to use when talking to the cluster. The default values in /etc/kubernetes/admin.conf
The path to the real host root filesystem
CLI Example:
salt '*' kubeadm.version