kubernetes.adm.join role – Joins a Kubernetes cluster

Note

This role is part of the kubernetes.adm collection (version 1.0.0).

To install it use: ansible-galaxy collection install kubernetes.adm.

To use it in a playbook, specify: kubernetes.adm.join.

Entry point main – Joins a Kubernetes cluster

Synopsis

  • Joins a node to a Kubernetes cluster using ‘kubeadm join’.

  • Uses joined_control_plane_node as a delegete.

  • The role uses kubeadm_config_template as template file for kubeadm --config.

  • The node is joined as a control plane node if is_control_plane is true.

Parameters

Parameter

Comments

kubeadm_config_template

string

The YAML template file that contains the JoinConfiguration.

Default: "_join_{{ kubeadm_apiversion }}.yml"

kubeadm_reset

boolean

Run ‘kubeadm reset’ before joining the cluster.

Only allowed for non control plane nodes.

Choices:

  • false ← (default)

  • true