安装dashboard
准备工作
在阿里云下载dashboard(可视化管理页面)所需镜像
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetes-dashboard-amd64:v1.10.0
重新打标签
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetes-dashboard-amd64:v1.10.0 k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.0
运行
docker images
看一下我们刚才pull下来的镜像
k8s.gcr.io/kubernetes-dashboard-amd64 v1.10.0 0dab2435c100 9 months ago 122MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetes-dashboard-amd64 v1.10.0 0dab2435c100 9 months ago 122MB
kubernetes-dashboard.yaml配置
创建kubernetes-dashboard.yaml文件
kubectl apply -f http://mirror.faasx.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
也可以创建 自行配制
vim kubernetes-dashboard.yaml
配置镜像源,配成我们刚刚pull下来的k8s.gcr.io/kubernetes-dashboard-amd64镜像,配置nodeport(外部访问端口)和targetport(内部私有端口)
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License