kubernetes.adm.upgrade role – Upgrade Kubernetes

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.upgrade.

Entry point main – Upgrade Kubernetes

Synopsis

  • Upgrade Kubernets control plane and worker nodes

  • The phases are run in the sequence: ‘facts’, ‘apply’, ‘node’ and then ‘kubelet’

Parameters

Parameter

Comments

kubeadm_patches_directory

string

kubeadm components patches directory.

Default: "/etc/kubernetes/patches"

phase

string / required

Determines the kubeadm command/phase to run.

  1. facts: Collect facts about the cluster. Must be run first.

  2. apply: Run ‘kubeadm uprade apply’.

  3. node: Run ‘kubeadm uprade node’.

  4. kubelet: Drain the node and upgrades the Kubelet.

Consult the kubeadm documentation for more information.

Choices:

  • "facts"

  • "apply"

  • "node"

  • "kubelet"

pre_kubelet_upgrade_hook

string

A tasks file to execute before upgrading the kubelet.

For example, you could upgrade the CR or the OS.

Entry point upgrade_crio – Upgrade CRI-O package

Synopsis