Kind - mount resolv.conf to skip systemd-resolved

By default Kind uses system /etc/resolv.conf. This points to systemd-resolved service and some queries might fail. You can mount your network DNS configuration.

Save below config in kind-cluster.yaml:

kind: Cluster
- role: control-plane
  - hostPath: /run/systemd/resolve/resolv.conf
    containerPath: /etc/resolv.conf

and run the kind:

$ kind create cluster --config kind-cluster.yaml

Control-plane node should use your network DNS now.

Merging multipe Kubernetes configs
KUBECONFIG=$(ls ~/.kube/*.config | tr "\n" ":") kubectl config view --merge --flatten > ~/.kube/config