kubespray安装kubernetes完成后kubenetes-dashboard安装
在上篇使用kuberspay无坑安装生产级Kubernetes集群,在安装完成后,若需安装kubernetes-dashboard
,请进行下面操作:
- 下载描述文件
curl https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml -o kubernetes-dashboard.yaml
- 将
gcr.io/google_containers/kubernetes-dashboard-amd64
修改为registry.cn-hangzhou.aliyuncs.com/google_images/kubernetes-dashboard-amd64
- 执行:
kubectl create -f kubernetes-dashboard.yaml
- 查看执行结果
wangyunfeideMBP:kubespray wangyunfei$ kubectl get pod NAME READY STATUS RESTARTS AGE kube-apiserver-node1 1/1 Running 0 3d kube-controller-manager-node1 1/1 Running 0 3d kube-dns-69997447-783dz 3/3 Running 0 3d kube-proxy-node1 1/1 Running 0 3d kube-proxy-node2 1/1 Running 0 3d kube-proxy-node3 1/1 Running 0 3d kube-scheduler-node1 1/1 Running 0 3d kubedns-autoscaler-2506230242-1vcgk 1/1 Running 0 3d kubernetes-dashboard-27199923-qqgrq 1/1 Running 0 1m nginx-proxy-node2 1/1 Running 0 3d nginx-proxy-node3 1/1 Running 0 3d
- 查看页面,执行
kubectl proxy
,访问http://127.0.0.1:8001/ui
源码地址:http://www.wisely.top/2017/07/04/kubespray-kubernetes-dashboard/
相关推荐
朱培知浅ZLH 2020-11-16
cdbdqn00 2020-11-12
达观数据 2020-11-11
JustinChia 2020-11-11
远远的山 2020-11-09
jingtao 2020-11-08
大叔比较胖 2020-10-30
gracecxj 2020-10-30
onepiecedn 2020-10-29
kunyus 2020-10-28
JustHaveTry 2020-10-27
锋锋 2020-10-26
hubanbei00的家园 2020-10-25
谢恩铭 2020-10-23
btqszl 2020-10-21
kaidiphp 2020-10-13
guchengxinfen 2020-10-12
liverlife 2020-10-10
BigDataMining 2020-10-08