How do I add a nameserver to all pods in Google Container Engine [GKE]?

前端 未结 3 1816
借酒劲吻你
借酒劲吻你 2021-02-03 12:19

I am attempting to migrate my on premises cluster to GKE. In order to facilitate this transition I need to be able to resolve the names of legacy services.

Assume that t

3条回答
  •  温柔的废话
    2021-02-03 12:56

    Effectively No.

    If you modify the node's resolv.conf the pods will inherit the changes.

    However, glibc prohibits using more than 3 nameservers or more than 6 search records.

    GCE VMs use 2 nameservers and 3 searches for accessing node metadata and project networking. And GKE uses 1 nameserver and 3 searches. That leaves you 0 nameservers and 0 searches.

    See this issue: https://github.com/kubernetes/kubernetes/issues/9079 and this issue: https://github.com/kubernetes/kubernetes/issues/9132

提交回复
热议问题