1.8 KiB
1.8 KiB
Kubernetes Ansible Playbook
Additional changes
SystemdCgroup = false
->SystemdCgroup = true
See this comment
Tags
This role has been setup to take advantage of Ansible tags. The use of these tags enables finer control over what tasks are run. By design, when you set a task, only what is required for the tag is run.
available tags are as follows
containerregistry
apply container/docker registry settingsfirewall
apply firewall settings (firewall name/type independent)install
Run every task within the role. this is the same as omitting--tags
iptables
apply iptables settingsmanifest
Apply/remove kubernetes manifestsnamespace
Apply/remove kubernetes namespacesnodelabels
Apply/remove kubernetes node labelstaints
Apply/remove kubernetes taints
!!! tip
if you intend on running the install
tag, you can omit the --tags
flag from the ansible tag all togther
!!! alert
the first time this playbook is run if cli switch --extra-vars "init=true"
is used with init
either a bool true/false, the manifests will not be applied. this is to enable the kubernetes to be fully setup prior to applying manifests that may prevent successful completion of the play.
command Cheatsheet
crictl --runtime-endpoint unix:///run/containerd/containerd.sock images
list all container images on the host
Links / References
-
ContainerD Configuration