kubernetes.adm.pre_join role – Generate token and certificate key for joining nodes
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.pre_join
.
Entry point main
– Generate token and certificate key for joining nodes
Synopsis
Generates a bootstrap token and a certificate key.
The certificate key encrypts the root CA before uploading it to the API server.
After running this role, the required variables for the join role will be available.
The output variables are avaliable on
localhost
facts and they are:join_token
,join_cert_key
,join_ca_cart_hash
andk8s_nodes
.