Azure 在使用完全限定名称之前,AKS、WIndows节点、dns不会解析服务

Azure 在使用完全限定名称之前,AKS、WIndows节点、dns不会解析服务,azure,kubernetes,azure-aks,Azure,Kubernetes,Azure Aks,AKS群集具有多个linux和windows节点池。 卡夫卡客户:合流。卡夫卡1.4.4 正在尝试解析名为“tt kafka kafka bootstrap.shared”的kafka服务 来自windows pod中的-无法解决: kubectl exec -it test-print-7f6b64dc4f-4z7lt --namespace test -- nslookup tt-kafka-kafka-bootstrap.shared Server: kube-dns.kube-syste

AKS群集具有多个linux和windows节点池。 卡夫卡客户:合流。卡夫卡1.4.4

正在尝试解析名为“tt kafka kafka bootstrap.shared”的kafka服务

来自windows pod中的-无法解决:

kubectl exec -it test-print-7f6b64dc4f-4z7lt --namespace test -- nslookup tt-kafka-kafka-bootstrap.shared
Server: kube-dns.kube-system.svc.cluster.local
Address: 10.0.0.10

*** kube-dns.kube-system.svc.cluster.local can't find tt-kafka-kafka-bootstrap.shared: Non-existent domain
但如果我使用svc.cluster.local限定服务地址,它将解析:

kubectl exec -it test-print-7f6b64dc4f-4z7lt --namespace test -- nslookup tt-kafka-kafka-bootstrap.shared.svc.cluster.local
Server: kube-dns.kube-system.svc.cluster.local
Address: 10.0.0.10

Name: tt-kafka-kafka-bootstrap.shared.svc.cluster.local
Address: 10.0.192.149
从LINUX POD中的开始-解析良好:

root@test-worker-t1-0:/app# nslookup tt-kafka-kafka-bootstrap.shared
Server: 10.0.0.10
Address: 10.0.0.10#53

Name: tt-kafka-kafka-bootstrap.shared.svc.cluster.local
Address: 10.0.192.149

事实证明,windows无法解析kubernetes中的名称空间

请参阅以下K8文档,以了解有关的更多信息 Kubernetes中的Windows容器:


事实证明,windows无法解析kubernetes中的名称空间

请参阅以下K8文档,以了解有关的更多信息 Kubernetes中的Windows容器: