Changing the Control Plane Ingress IPΒΆ

  1. On the Bootstrap node, update the ip field from networks.controlPlane.ingress in the Bootstrap configuration file. (refer to Bootstrap Configuration)

  2. Refresh the pillar.

    $ salt-call saltutil.refresh_pillar wait=True
  3. Check that the change is taken into account.

    $ salt-call metalk8s_network.get_control_plane_ingress_ip
  4. On the Bootstrap node, reconfigure apiServer:

    $ salt-call state.sls \
        metalk8s.kubernetes.apiserver \
  5. 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 "" \
        --namespace=kube-system -o jsonpath='{.items[0]}')  \
        -- salt-run state.orchestrate \
        metalk8s.orchestrate.update-control-plane-ingress-ip \
  6. You can access the MetalK8s GUI using this new IP.