Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 559 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 559 Bytes

ansible-microk8s

Set up mickrok8s (Kubernetes) using Ansible

Set static IP

ansible-playbook -i <current_ip_vm/prefix_length>, set-static-ip.yaml -K -e "ip=<desired_static_ip>" -e "gateway=<gateway>" -e "hostname=<hostname_vm>"

Set up microk8s

ansible-playbook -i inventory.ini set-up-microk8s.yaml -K

Use kubectl command

SSH to VM

ssh <desired_static_ip>

Test kubectl command

kubectl version

kubectl-version