Files
website/docs/getting-started-guides
Nicolas Dextraze 563241c4e5 Update kubeadm.md
Wasted hours today trying to get kubeadm working on a Ubuntu VM. The culprit is a missing = for the pod-network-cidr parameter to the kubeadm init command when using calico. Without it kube-dns refused to start, oddly enough pods had 10.244.0.0 network setup but somehow it was failing sending a request to destroy and recreate the pod.

Here's the events for the kube-dns pods if someone's interested.

Events:
  FirstSeen     LastSeen        Count   From                    SubObjectPath   Type            Reason          Message
  ---------     --------        -----   ----                    -------------   --------        ------          -------
  2m            2m              1       default-scheduler                       Normal          Scheduled       Successfully assigned kube-dns-3913472980-5xfzt to kube-master
  1m            1m              1       kubelet, kube-master                    Warning         FailedSync      Error syncing pod, skipping: failed to "CreatePodSandbox" for "kube-dns-3913472980-5xfzt_kube-system(3bd90f8c-33a8-11e7-8a23-080027ac04f3)" with CreatePodSandboxError: "CreatePodSandbox for pod \"kube-dns-3913472980-5xfzt_kube-system(3bd90f8c-33a8-11e7-8a23-080027ac04f3)\" failed: rpc error: code = 2 desc = NetworkPlugin cni failed to set up pod \"kube-dns-3913472980-5xfzt_kube-system\" network: Get https://10.96.0.1:443/api/v1/namespaces/kube-system/pods/kube-dns-3913472980-5xfzt: dial tcp 10.96.0.1:443: i/o timeout"

  1m    50s     6       kubelet, kube-master            Warning FailedSync      Error syncing pod, skipping: failed to "KillPodSandbox" for "3bd90f8c-33a8-11e7-8a23-080027ac04f3" with KillPodSandboxError: "rpc error: code = 2 desc = NetworkPlugin cni failed to teardown pod \"kube-dns-3913472980-5xfzt_kube-system\" network: connection is unauthorized"

  1m    9s      9       kubelet, kube-master            Normal  SandboxChanged  Pod sandbox changed, it will be killed and re-created.
  37s   9s      3       kubelet, kube-master            Warning FailedSync      Error syncing pod, skipping: failed to "KillPodSandbox" for "3bd90f8c-33a8-11e7-8a23-080027ac04f3" with KillPodSandboxError: "rpc error: code = 2 desc = NetworkPlugin cni failed to teardown pod \"kube-dns-3913472980-5xfzt_kube-system\" network: netplugin failed but error parsing its diagnostic message \"\": unexpected end of JSON input"
2017-05-08 10:31:22 -07:00
..
2017-05-04 07:25:24 -07:00
2017-05-01 19:34:32 +02:00
2017-01-18 12:57:01 +08:00
2017-04-20 13:59:02 -07:00
2017-03-22 10:10:36 -07:00
2017-03-23 22:43:52 +01:00
2017-04-28 15:15:18 -07:00
2017-05-08 10:31:22 -07:00
2017-04-25 10:38:44 -07:00
2017-03-24 11:03:01 -07:00
2017-05-05 14:42:14 -07:00
2017-04-25 10:39:00 -07:00