1.8 KiB
1.8 KiB
Kubernetes Ansible Playbook
Additional changes
SystemdCgroup = false->SystemdCgroup = trueSee 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
containerregistryapply container/docker registry settingsfirewallapply firewall settings (firewall name/type independent)installRun every task within the role. this is the same as omitting--tagsiptablesapply iptables settingsmanifestApply/remove kubernetes manifestsnamespaceApply/remove kubernetes namespacesnodelabelsApply/remove kubernetes node labelstaintsApply/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 imageslist all container images on the host
Links / References
-
ContainerD Configuration