kubernetes.adm.prepare role – Prepare node for Kubernetes installtion
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.prepare
.
Entry point main
– Prepare node for Kubernetes installtion
Synopsis
Ensure that the node has the desired swap state, kernel modules and kernel parameters.
Configure the required repositories for the container runtime and Kubernetes.
Install the container runtime.
Install Kubernetes packages
Install
kubernetes.core
and its requirements on control plane nodes.
Parameters
Parameter |
Comments |
---|---|
Tasks file for preparing the OS for CNI. Default: |
|
Add complete_alias from github.com/cykerway/complete-alias Choices:
|
|
Tasks file for installing shell completion. Default: |
|
The containerd package version. |
|
The container runtime. Choices:
|
|
Tasks file for preparing and installing the container runtime. |
|
Used in setting up the CRI-O YUM repository. On CentOS 8 it would be ‘CentOS_8’. |
|
The CRI-O version to install/upgrade. Default: |
|
Add kubectl aliases from github.com/ahmetb/kubectl-aliases Choices:
|
|
Add kubens shell script to switch between namespaces. Choices:
|
|
When true, no YUM reposioiry will be added. Choices:
|
|
Only relevent if there is an existing installtion of the CR or Kubernetes packages. When true, the CR and Kubernetes will upgraded/downgraded to Should only by used when initializing a new cluster. Choices:
|
|
Whether to disable or enable swap. Attempts to undo a previous execution of swap_state=disabled will not create a new swap partition or file. Choices:
|
|
Tasks file for swap memory. Default: |