DEPRECATED: Migrated to https://github.com/lucaslehnen/tchecode.k3s
Prepare a Ubuntu node to receive k3s cluster.
To configure nodes and init cluster, check the following roles. This role is a requirement for them:
This role must be run on all nodes.
In your main.yml
:
- hosts: servers
roles:
- k3s-install
In your requirements.yml
:
- name: k3s-install
src: https://github.com/lucaslehnen/k3s-install
version: 1.0.0
Define target hosts in your inventory file hosts
:
[servers]
192.168.99.11
192.168.99.12
192.168.99.13
Install requirements:
ansible-galaxy install -r requirements.yml
Call the playbook:
ansible-playbook -i hosts main.yml
MIT