Skip to content

DNS options in the Kind Config #4014

@Kukkerem

Description

@Kukkerem

What would you like to be added:
A new section in the Kind Config that allows for setting Docker network options, specifically the --dns option. We want to specify the DNS server as one of the already running Kind clusters.

Proposed configuration:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
  dns:
    nameservers:
    - "172.18.0.100"  # Custom DNS server IP

Why is this needed:
We are building a multi-cluster development environment around Kind, with a local DNS in one of the clusters. This DNS is responsible for routing between clusters. Currently, the Kubernetes API server uses the host's DNS configuration, which creates issues when:

  • Admission webhooks must resolve services in other Kind clusters by DNS name.
  • Host DNS modification is not desirable or possible in CI/CD environments.

Modifying the local /etc/resolv.conf inside running containers is fragile, and we don't want to use IP addresses to avoid breaking the abstraction layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions