Added Dashboard for kubernetes cluster

This commit is contained in:
2026-03-08 13:24:06 +01:00
parent ef43cde916
commit 8db7202686
4 changed files with 85 additions and 2 deletions

View File

@@ -26,13 +26,15 @@
- name: Install Flannel Pod Network
command: kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
become: yes
become_user: "{{ ansible_user }}"
environment:
KUBECONFIG: /etc/kubernetes/admin.conf
when: kubeadm_init.changed
- name: Get join command
command: kubeadm token create --print-join-command
register: join_command_raw
environment:
KUBECONFIG: /etc/kubernetes/admin.conf
- name: Add dummy host with variable
add_host: