Error deploying kube-dns: no configuration provided

I just installed the core kubernetes cluster manually to better understand the components and automate this installation later. I followed this tutorial: https://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/

After that, the cluster is completely empty without add-ons. I have already successfully deployed the kubernetes-dashboard, however when I try to deploy kube-dns it does not work with the log:

2017-01-11T15:09:35.982973000Z F0111 15:09:35.978104 1 server.go:55] Failed to create a kubernetes client: invalid configuration: no configuration has been provided 

I used the following yaml template for kube-dns without changes, only filling in the cluster IP address: https://coreos.com/kubernetes/docs/latest/deploy-addons.html

What have I done wrong?

+5
source share
2 answers

While experimenting with kubedns arguments, I added --kube-master-url=http://mykubemaster.mydomain:8080 to the yaml file, and suddenly it turned green.

How did you manage to solve this? For some reason, the container did not know about the owner?

+3
source

In my case, I had to set the numeric IP address to "-kube-master-url = http: // XXXX: 8080 ". This is in the yaml RC (ReplicationController) file, just like:

  ... spec: containers: - name: kubedns ... args: # command = "/kube-dns" - --domain=cluster.local - --dns-port=10053 - --kube-master-url=http://192.168.99.100:8080 
0
source

Source: https://habr.com/ru/post/1262643/


All Articles