2021-07-22 23:14:56 -04:00
|
|
|
# Ansible Role: microk8s
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This role 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:31 -05:00
|
|
|
should also be running Ubuntu LTS; 18.04, 20.04 or 22.04.
|
2021-07-22 23:14:56 -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:31 -05:00
|
|
|
ansible-playbook -i cluster_inventory.yml -e "username=someuser" microk8s.yml
|
2021-07-22 23:14:56 -04:00
|
|
|
|
|
|
|
NOTE:
|
|
|
|
|
|
|
|
The following variables must be specified in the calling playbook (usually
|
|
|
|
done by doing a 'gather_facts' action);
|
|
|
|
|
|
|
|
{{ ansible_distribution }}
|
|
|
|
|