Update kubeconfig paths in setup-k3s.yaml and main.yaml for consistency

This commit is contained in:
Nik Afiq 2026-03-06 10:48:45 +09:00
parent 208c768b2e
commit 5237c03d4b
2 changed files with 3 additions and 4 deletions

View File

@ -1,14 +1,13 @@
--- ---
# Run: ansible-playbook -i ansible/inventory.yaml ansible/playbooks/setup-k3s.yaml # Run: ansible-playbook ansible/playbooks/setup-k3s.yaml -K
# #
# What this does: # What this does:
# - Installs K3s in server mode (with Traefik disabled) # - Installs K3s in server mode (with Traefik disabled)
# - Installs Helm # - Installs Helm
# - Fetches kubeconfig to /tmp/k3s-minisforum.yaml on your workstation # - Fetches kubeconfig to ~/.kube/config on your workstation
# - Labels the node as node-role=primary # - Labels the node as node-role=primary
# #
# After this playbook: # After this playbook:
# export KUBECONFIG=/tmp/k3s-minisforum.yaml
# kubectl get nodes # should show minisforum as Ready # kubectl get nodes # should show minisforum as Ready
# #
# Then deploy Traefik: # Then deploy Traefik:

View File

@ -46,7 +46,7 @@
- name: Fetch kubeconfig to workstation - name: Fetch kubeconfig to workstation
ansible.builtin.fetch: ansible.builtin.fetch:
src: /etc/rancher/k3s/k3s.yaml src: /etc/rancher/k3s/k3s.yaml
dest: /tmp/k3s-minisforum.yaml dest: ~/.kube/config
flat: true flat: true
- name: Fix kubeconfig server address - name: Fix kubeconfig server address