kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 networking: apiServerAddress: "0.0.0.0" # Ensure stable port so we can rewrite the server address later apiServerPort: 6443 # Adding this so containers from the same docker network can access it # https://blog.scottlowe.org/2019/07/30/adding-a-name-to-kubernetes-api-server-certificate/ nodes: - role: control-plane kubeadmConfigPatches: - | kind: ClusterConfiguration apiServer: certSANs: - "docker"