Tanguy Herbron
6f57f55b97
Ansible inventory can now be static with static IPs provisioned by Vangard. The documentation has also been updated to include how the configuration of the ingress node can be node from any VPS provider.
19 lines
868 B
Makefile
19 lines
868 B
Makefile
install_vb:
|
|
vagrant up
|
|
cd ansible && ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ../inventory/lab.yml -i ../inventory/outsider.yml init.yml --extra-vars "enable_setup=true enable_wireguard=true enable_k3s=true"
|
|
make get_k3s_credentials
|
|
|
|
k3s_reset:
|
|
cd ansible && ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ../inventory/lab.yml -i ../inventory/outsider.yml k3s-ansible/reset.yml
|
|
cd ansible && ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ../inventory/lab.yml -i ../inventory/outsider.yml init.yml --extra-vars "enable_setup=true enable_wireguard=true enable_k3s=true"
|
|
make get_k3s_credentials
|
|
|
|
destroy:
|
|
vagrant destroy -f
|
|
|
|
get_k3s_credentials:
|
|
vagrant ssh -c "sudo cat /home/creator/.kube/config" hb-wide-1 > ~/.kube/config-halia
|
|
sed -i 's/10.20.*:/192.168.56.101:/g' ~/.kube/config-halia
|
|
kube-merge
|
|
kubectl get nodes --context halia
|