Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.77 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.77 KB

Day-2 operations

Synopsis

$ make help
Global variables
================
LIMIT                          Limit ansible hosts to manage
VERBOSE                        Set ansible in verbose mode (bool)

Targets
=======
add-nodes                      Add new nodes to the cluster
cluster-reboot                 Reboot the cluster (one by one)
cluster-reset                  Reset the cluster (nodes are wiped, kubectl context removed)
cluster-shutdown               Stop the nodes but keep the current configuration
help                           This help message
libvirt-destroy                Destroy the local machines
remove-cert-manager            Remove Cert Manager
remove-nodes                   Remove nodes deleted from the inventory
remove-quickwit                Remove Quickwit
remove-rook-ceph               Remove Rook operator for Ceph
remove-tinkerbell              Remove Tinkerbell
upgrade-k8s                    Upgrade k8s to the given version (KUBERNETES_VERSION)
upgrade-talos                  Upgrade k8s to the given version (KUBERNETES_VERSION)
$

Nodes

Adding a node:

$ vim ../inventory.ini # Add some nodes into the inventory
$ make add-nodes

Remove nodes:

$ vim ../inventory.ini # Remove some nodes
$ make remove-nodes

Upgrades

Get the last version from GitHub and upgrade.

$ export KUBERNETES_TAGS=https://api.github.com/repos/kubernetes/kubernetes/tags
$ export KUBERNETES_VERSION=$(curl -s $KUBERNETES_TAGS | jq -r ".[].name" | awk '!/alpha/ && !/beta/ && !/rc/' | head -n1)
$ make upgrade-k8s

Deletions

Remove the middleware you want using their target:

$ make remove-rook-ceph
$ make remove-tinkerbell

Destroy the libvirt-based cluster

$ make libvirt-destroy