2021-07-26 16:35:13 -04:00
|
|
|
# microk8s playbook
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This is the top level playbook for the 'microk8s' role, which will install a
|
|
|
|
microk8s cluster to three or more target hosts.
|
|
|
|
|
|
|
|
This role requires at least three target hosts, previously deployed. Each
|
|
|
|
host should have at least 4GB of RAM and at least a 20GB disk. The hosts
|
2022-01-03 10:08:34 -05:00
|
|
|
should also be running Ubuntu LTS; 18.04, 20.04 or 22.04.
|
2021-07-26 16:35:13 -04:00
|
|
|
|
|
|
|
It is also assumed that the user running the playbook has SSH key access
|
|
|
|
set up for the root user on the target hosts.
|
|
|
|
|
|
|
|
This playbook can be run using the following command line;
|
|
|
|
|
|
|
|
ansible-playbook -i <inventory file> -e "username=<username>" microk8s.yml
|
|
|
|
|
|
|
|
ie,
|
2022-01-03 10:08:34 -05:00
|
|
|
ansible-playbook -i microk8s_inventory.yml -e "username=someuser" microk8s.yml
|
2021-07-26 16:35:13 -04:00
|
|
|
|