Changing the Control Plane Ingress IPΒΆ
On the Bootstrap node, update the
ip
field fromnetworks.controlPlane.ingress
in the Bootstrap configuration file. (refer to Bootstrap Configuration)Refresh the pillar.
$ salt-call saltutil.refresh_pillar wait=True
Check that the change is taken into account.
$ salt-call metalk8s_network.get_control_plane_ingress_ip local: <my-new-ip>
On the Bootstrap node, reconfigure apiServer:
$ salt-call state.sls \ metalk8s.kubernetes.apiserver \ saltenv=metalk8s-2.10.0-alpha1
Reconfigure Control Plane components:
$ kubectl exec -n kube-system -c salt-master \ --kubeconfig=/etc/kubernetes/admin.conf \ $(kubectl --kubeconfig=/etc/kubernetes/admin.conf get pod \ -l "app.kubernetes.io/name=salt-master" \ --namespace=kube-system -o jsonpath='{.items[0].metadata.name}') \ -- salt-run state.orchestrate \ metalk8s.orchestrate.update-control-plane-ingress-ip \ saltenv=metalk8s-2.10.0-alpha1
You can access the MetalK8s GUI using this new IP.