Update roles/kube-master/tasks/main.yml

This commit is contained in:
2025-10-15 16:46:34 +00:00
parent 9bfebc0e4c
commit ad28b79c13

View File

@ -2,17 +2,6 @@
# command: kubeadm init --pod-network-cidr=192.168.3.0/16 --apiserver-advertise-address=192.168.2.50
# creates: /etc/kubernetes/admin.conf
- name: 33 Wait for Kubernetes API to be ready
shell: |
kubectl get --raw='/healthz'
environment:
KUBECONFIG: /home/fenix/.kube/config
register: api_health
until: api_health.rc == 0
retries: 10
delay: 6
become: yes
- name: Inicializar o cluster com kubeadm
command:
argv:
@ -26,16 +15,6 @@
path: /home/fenix/.kube
register: kube_dir
- name: 33 Wait for Kubernetes API to be ready
shell: |
kubectl get --raw='/healthz'
environment:
KUBECONFIG: /home/fenix/.kube/config
register: api_health
until: api_health.rc == 0
retries: 10
delay: 6
become: yes
- name: Criar diretório .kube para o usuário ubuntu
ansible.builtin.file: