add kubernetes provisioning

This commit is contained in:
Bartal Læarsson
2025-02-28 10:03:48 +00:00
parent d8813b2428
commit 211ebef466
10 changed files with 23 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
---
# tasks/worker-join.yml
- name: Get join command from control plane
delegate_to: controlplane
command: kubeadm token create --print-join-command
register: join_command_result
changed_when: false
run_once: true
- name: Join worker node to the cluster
command: "{{ join_command_result.stdout }}"
args:
creates: /etc/kubernetes/kubelet.conf