Last active
August 29, 2015 14:24
-
-
Save guybrush/47bcd5f4e41a3be102b2 to your computer and use it in GitHub Desktop.
kubernetes dns with a patched hack/local-up-cluster.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/dev/lib/kubernetes/cluster/kubectl.sh logs kube-dns-v8-rqehr kube2sky | |
I0713 05:43:34.025887 1 kube2sky.go:389] Etcd server found: http://127.0.0.1:4001 | |
I0713 05:43:35.028313 1 kube2sky.go:455] Using http://127.0.0.1:8080 for kubernetes master | |
I0713 05:43:35.028353 1 kube2sky.go:456] Using kubernetes API v1 | |
E0713 05:43:35.029755 1 reflector.go:136] Failed to list *api.Endpoints: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:35.030030 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:36.031475 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:36.032777 1 reflector.go:136] Failed to list *api.Endpoints: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:37.033914 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:37.035569 1 reflector.go:136] Failed to list *api.Endpoints: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:38.035001 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:38.036623 1 reflector.go:136] Failed to list *api.Endpoints: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:39.038011 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:39.038250 1 reflector.go:136] Failed to list *api.Endpoints: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value | |
E0713 05:43:40.039261 1 reflector.go:136] Failed to list *api.Service: couldn't get version/kind; json parse error: invalid character '<' looking for beginning of value |
Author
guybrush
commented
Jul 13, 2015
i got it working, the problem was
- kube2sky argument is
-kube_master_url=http://127.0.0.1:8080
, which doesnt work since127.0.0.1
is the pod - my host has ip-addr:
10.0.0.161
which overlaps with the service-ip-range10.0.0.0/24
i solved it by
- putting an extra kube-proxy container into the skydns-rc (see examples/kubectl-container)
- setting the clusterIp in skydns-svc and kubelet-argument
--cluster_dns
to10.100.0.10
- setting the service-ip-range to
10.100.0.0/24
note: first i tried to set --insecure_port=8080
and --insecure_bind_address=0.0.0.0
on the apiserver, instead of putting the kube-proxy container into the skydns-rc, which also works but exposes the apiserver publicly (which is suboptimal)
I have setup skydns in kubernetes 1.1 with flannel on centos 7. i am facing same issue. i deployed my cluster-ip with 10.254.0.100 ip address my portal not routable ip is 10.254.0.0/16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment