Kubernetes dashboard in CrashLoopbackOff: Error while initializing connection to Kubernetes apiserve

1,193 views
Skip to first unread message

Traiano Welcome

unread,
Jun 9, 2018, 1:21:28 PM6/9/18
to Kubernetes developer/contributor discussion
Hi

I have a fresh install of kubernetes on a 3 node cluster (ubuntu 16.04, VirtualBox), using kubadm:

```
kubeadm version: &version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-21T09:05:37Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
```

I installed the kubernetes dashboard using the standard yaml definition:


However I see the pod keeps crashing:


```
kube-proxy-6bzmx                        1/1       Running            2          1d
kube-proxy-9jp98                        1/1       Running            2          1d
kube-proxy-bppbp                        1/1       Running            0          1d
kube-scheduler-kubemaster               1/1       Running            2          1d
kubernetes-dashboard-7d5dcdb6d9-9snln   0/1       CrashLoopBackOff   1          1m
```

I've modified the apiserver-url line a follows:

```
--apiserver-host=https://127.0.0.1:6443
```


I can curl a response from the api server url successfully:


```
root@kubemaster:~/dashboard# curl -k https://192.168.99.20:6443/version
{
  "major": "1",
  "minor": "10",
  "gitVersion": "v1.10.3",
  "gitCommit": "2bba0127d85d5a46ab4b778548be28623b32d0b0",
  "gitTreeState": "clean",
  "buildDate": "2018-05-21T09:05:37Z",
  "goVersion": "go1.9.3",
  "compiler": "gc",
  "platform": "linux/amd64"
}
```

And:

```
root@kubemaster:~/dashboard# curl -k  https://127.0.0.1:6443/version
{
  "major": "1",
  "minor": "10",
  "gitVersion": "v1.10.3",
  "gitCommit": "2bba0127d85d5a46ab4b778548be28623b32d0b0",
  "gitTreeState": "clean",
  "buildDate": "2018-05-21T09:05:37Z",
  "goVersion": "go1.9.3",
  "compiler": "gc",
  "platform": "linux/amd64"
}
```

However, redeploying still results in the pod ending up in CrashloopBackup, with the same error:

Stopping the nodes to force dashboard deployment on the master just results in the pod remaining in pending state forever:

-----
Every 2.0s: kubectl get po -n kube-system                                                                                            Tue Jun  5 05:04:56 2018

NAME                                    READY     STATUS    RESTARTS   AGE
etcd-kubemaster                         1/1       Running   8          1d
kube-apiserver-kubemaster               1/1       Running   9          1d
kube-controller-manager-kubemaster      1/1       Running   8          1d
kube-dns-86f4d74b45-kf8mr               3/3       Running   21         1d
kube-flannel-ds-5cl8l                   1/1       Running   5          1d
kube-flannel-ds-8fgk6                   1/1       Running   1          1d
kube-flannel-ds-hmzdb                   1/1       Running   9          1d
kube-proxy-6bzmx                        1/1       Running   8          1d
kube-proxy-9jp98                        1/1       Running   3          1d
kube-proxy-bppbp                        1/1       Running   1          1d
kube-scheduler-kubemaster               1/1       Running   9          1d
kubernetes-dashboard-7f86dc5d9c-sdtb5   0/1       Pending   0          4m
-----

Things I've tried so far:

1) disable ipv6 on linux master
2) stop all nodes and ensure the dashboard only deploys on the master
3) change the API url from http to https

Is this a known issue? Alternatively, how can I get a running dashboard :-)

Thanks in advance for any help,
Traiano

Erick Fejta

unread,
Jun 11, 2018, 5:42:31 PM6/11/18
to Traiano Welcome, Kubernetes developer/contributor discussion
Unfortunately kubernetes-dev is not a troubleshooting forum.

Please see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/ for some alternative troubleshooting suggestions.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/ffd7bad4-043c-4b5f-9211-cc604a5de11b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages