kubernetes 仪表板无法启动
kubernetes dashboard not able to launch
在 Ubuntu 16.04.03(GCP 实例)上安装了 kubernetes 主节点。一切顺利,但无法启动仪表板。我确实打开了防火墙端口 8001
实例子网。 New/first 时间安装所以我可能会遗漏一些东西请指教。在 运行 kubectl proxy 之后,我试图通过实例的外部 ip 访问仪表板,例如:http://35.196.xx.xx:8001/ui
la@kube-master:~$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
etcd-kube-master 1/1 Running 0 17m
kube-apiserver-kube-master 1/1 Running 0 17m
kube-controller-manager-kube-master 1/1 Running 0 17m
kube-dns-545bc4bfd4-knw2b 3/3 Running 0 26m
kube-flannel-ds-bpm8c 1/1 Running 0 17m
kube-proxy-k649v 1/1 Running 0 26m
kube-scheduler-kube-master 1/1 Running 0 17m
la@kube-master:~$ kubectl cluster-info
Kubernetes master is running at https://10.142.0.2:6443
KubeDNS is running at https://10.142.0.2:6443/api/v1/namespaces/kube-system/services/kube-dns
/proxy
la@kube-master:~$ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 29m
提前致谢。
这是一个 add-on that you need to install。有些安装方法会自动添加,但你选择的方法好像没有。
要部署仪表板,请执行以下命令:
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
要开始使用仪表板 运行,请执行以下命令:
$ kubectl proxy
仪表板现已在 http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ 上可用。
如果您 运行 宁在 Google 云上,为什么不使用 GKE? It's much easier to deploy and manage. It even comes with a built-in dashboard。
在 Ubuntu 16.04.03(GCP 实例)上安装了 kubernetes 主节点。一切顺利,但无法启动仪表板。我确实打开了防火墙端口 8001 实例子网。 New/first 时间安装所以我可能会遗漏一些东西请指教。在 运行 kubectl proxy 之后,我试图通过实例的外部 ip 访问仪表板,例如:http://35.196.xx.xx:8001/ui
la@kube-master:~$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
etcd-kube-master 1/1 Running 0 17m
kube-apiserver-kube-master 1/1 Running 0 17m
kube-controller-manager-kube-master 1/1 Running 0 17m
kube-dns-545bc4bfd4-knw2b 3/3 Running 0 26m
kube-flannel-ds-bpm8c 1/1 Running 0 17m
kube-proxy-k649v 1/1 Running 0 26m
kube-scheduler-kube-master 1/1 Running 0 17m
la@kube-master:~$ kubectl cluster-info
Kubernetes master is running at https://10.142.0.2:6443
KubeDNS is running at https://10.142.0.2:6443/api/v1/namespaces/kube-system/services/kube-dns
/proxy
la@kube-master:~$ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 29m
提前致谢。
这是一个 add-on that you need to install。有些安装方法会自动添加,但你选择的方法好像没有。
要部署仪表板,请执行以下命令:
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
要开始使用仪表板 运行,请执行以下命令:
$ kubectl proxy
仪表板现已在 http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ 上可用。
如果您 运行 宁在 Google 云上,为什么不使用 GKE? It's much easier to deploy and manage. It even comes with a built-in dashboard。