kube-dns

Zookeeper: Hostname resolution fails

左心房为你撑大大i 提交于 2019-12-06 08:20:50
问题 I am running Zookeeper in an OpenShift/Kubernetes environment. I have setup zookeeper as a StatefulSet in order to reliably persist config data. I configured three servers in my zoo.cfg by hostname, but on startup, hostname resolution fails. I verified hostnames are indeed resolvable using nslookup inside my cluster. zoo.cfg: clientPort=2181 dataDir=/var/lib/zookeeper/data dataLogDir=/var/lib/zookeeper/log tickTime=2000 initLimit=10 syncLimit=2000 maxClientCnxns=60 minSessionTimeout= 4000

Kubernetes PetSet DNS not working

≡放荡痞女 提交于 2019-12-05 17:53:41
I have a Kubernetes PetSet with name == elasticsearch and serviceName == es . It does create pods and, as expected, they have names like elasticsearch-0 and elasticsearch-1 . However, DNS does not seem to be working. elasticsearch-0.es does not resolve (nor does elasticsearch-0.default , etc.). If you look at the generated srv records they seem to be random instead of predictable: # nslookup -type=srv elasticsearch Server: 10.1.0.2 Address: 10.1.0.2#53 elasticsearch.default.svc.cluster.local service = 10 100 0 9627d60e.elasticsearch.default.svc.cluster.local. Anyone have any ideas? Details

Instructions to install addons with Kubernetes 1.6 on bare metal machine?

你。 提交于 2019-12-04 04:32:47
I have setup my kubernetes cluster from scratch following this doc: https://kubernetes.io/docs/getting-started-guides/scratch/ My kubernetes master and worker are working correctly, but I didn't find the instruction to deploy dns addons. Addons can be deployed through yaml files as well as using the addon manager . I have already installed dashboard , monitoring , DNS manually using the yaml files provided (with small modifications) in this repo . Please note addon-manager is pretty special, You should copy all files into a directory then: ./kube-addons.sh Btw I prefer installing addons

Coredns couldn't reach to Host Nameserver

流过昼夜 提交于 2019-12-02 10:29:08
I've created a kubernetes cluster from scratch as the directions of Kelsey Hightower. As I checked, everything works without any error but after I've deployed my first application, I figured out my application couldn't resolve the DNSes. I've checked my coredns logs and saw below entries : .:53 2018/10/16 12:31:45 [INFO] CoreDNS-1.2.2 2018/10/16 12:31:45 [INFO] linux/amd64, go1.11, eb51e8b CoreDNS-1.2.2 linux/amd64, go1.11, eb51e8b 2018/10/16 12:31:45 [INFO] plugin/reload: Running configuration MD5 = 06122de1a2d6c43092ab48d05478dc82 2018/10/16 12:44:27 [ERROR] 2 google.com. A: unreachable

Accessing Kubernetes Web UI (Dashboard)

好久不见. 提交于 2019-12-02 05:29:36
I have installed a Kubernetes with Kubeadm tool, and then followed the documentation to install the Web UI (Dashboard). Kubernetes is installed and running in one node instance which is a taint master node. However, I'm not able to access the Web UI at https://<kubernetes-master>/ui . Instead I can access it on https://<kubernetes-master>:6443/ui . How could I fix this? The URL you are using to access the dashboard is an endpoint on the API Server. By default, kubeadm deploys the API server on port 6443 , and not on 443 , which is what you would need to access the dashboard through https

How does one install the kube-dns addon for minikube?

天大地大妈咪最大 提交于 2019-12-01 04:05:15
Can someone please detail the steps necessary to install the kube-dns addon? I've downloaded the nearly 400MB git repo in the previous link and run make as instructed but get Nothing to be done for 'all'. The docs aren't clear what form add-ons exist in, and how to install them. The "Administrators guide" link there takes me to this unhelpful page. I've tried https://stackoverflow.com/a/42315074/4978821 , but got an error validating data message. Even if this worked, it seems like it'd be an unofficial and awkward solution. Answers like this are also too vague: https://stackoverflow.com/a

How does one install the kube-dns addon for minikube?

為{幸葍}努か 提交于 2019-12-01 01:10:20
问题 Can someone please detail the steps necessary to install the kube-dns addon? I've downloaded the nearly 400MB git repo in the previous link and run make as instructed but get Nothing to be done for 'all'. The docs aren't clear what form add-ons exist in, and how to install them. The "Administrators guide" link there takes me to this unhelpful page. I've tried https://stackoverflow.com/a/42315074/4978821, but got an error validating data message. Even if this worked, it seems like it'd be an

How to get kube-dns working in Vagrant cluster using kubeadm and Weave

跟風遠走 提交于 2019-11-29 03:58:53
I deployed a few VMs using Vagrant to test kubernetes: master: 4 CPUs, 4GB RAM node-1: 4 CPUs, 8GB RAM Base image: Centos/7. Networking: Bridged. Host OS: Centos 7.2 Deployed kubernetes using kubeadm by following kubeadm getting started guide . After adding the node to the cluster and installing Weave Net, I'm unfortunately not able to get kube-dns up and running as it stays in a ContainerCreating state: [vagrant@master ~]$ kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system etcd-master 1/1 Running 0 1h kube-system kube-apiserver-master 1/1 Running 0 1h kube

How to expose kube-dns service for queries outside cluster?

独自空忆成欢 提交于 2019-11-27 23:40:55
问题 I'm trying to expose the "kube-dns" service to be available to be queried outside of the Kubernetes cluster. In order to do this I edited the "Service" definition to change "type" from "ClusterIP" to "NodePort" which seemed to work fine. However, when I attempt to query on the node port, I'm able to get a TCP session (testing with Telnet) but can't seem to get any response from the DNS server (testing with dig). I've had a look through the logs on each of the containers on the "kube-dns" Pod