Add Upgrade Playbook (#236)

* Highlight node reqs.

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add upgrade playbook

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Move PR template

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2023-11-09 10:56:47 -08:00
committed by GitHub
parent fd6f288b20
commit e864933b04
4 changed files with 72 additions and 1 deletions

View File

@@ -22,7 +22,12 @@ on processor architecture:
## System requirements
Deployment environment must have Ansible 2.4.0+
Server and agent nodes must have passwordless SSH access
All nodes in inventory must have:
- Passwordless SSH access
- Root access (or a user with equivalent permissions)
It is also recommended that all nodes disable firewalls and swap. See [K3s Requirements](https://docs.k3s.io/installation/requirements) for more information.
## Usage
@@ -59,6 +64,15 @@ Start provisioning of the cluster using the following command:
ansible-playbook playbook/site.yml -i inventory.yml
```
## Upgrading
A playbook is provided to upgrade k3s on all nodes in the cluster. To use it, update `k3s_version` with the desired version in `inventory.yml` and run:
```bash
ansible-playbook playbook/upgrade.yml -i inventory.yml
```
## Kubeconfig
After successful bringup, the kubeconfig of the cluster is copied to the control-node and set as default (`~/.kube/config`).