Kubernetes - apiserver advertise address

On vagrant I built a kubernetes cluster with ansible and noticed that the kubeadm init was not using the private interface created on vagrant. So to avoid that, ti changed the command with the parameter --apiserver-advertise-address to use the private ip of the master. 



- name: Start the cluster
  shell: kubeadm init --apiserver-advertise-address={{ inventory_hostname }} --pod-network-cidr 10.50.0.0/16 --cri-socket /run/containerd/containerd.sock
  register: kubeadm_init_output
  when: not file_exists.stat.exists

Comentários

Postagens mais visitadas deste blog

Transformando o Linksys WRT54G2 V1 em bridge, repetidor

Recuperando partições deletadas

How to install YUM and other rpm packages on VIOs and AIX manually