Kubernetes扩展插件Dashboard安装

Kubernetes扩展插件Dashboard安装

cd ~/kubernetes/cluster/addons/dashboard/

mkdir -p ~/workspace/dashboard

cp * ~/workspace/dashboard/

cd ~/workspace/dashboard

ls -l

vi dashboard-controller.yaml

配置api server (--apiserver-host=http://10.99.0.10:8080)

 containers:

      - name: kubernetes-dashboard

        image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.1.0

        args:

           - --apiserver-host=http://10.99.0.10:8080

           

           

vi dashboard-service.yaml

spec:

  type: NodePort           

kubectl delete -f dashboard-service.yaml

kubectl delete -f dashboard-controller.yaml

kubectl create -f dashboard-service.yaml

kubectl create -f dashboard-controller.yaml

查看导出的随机端口

http://节点IP:随机端口

kubectl get pod  --namespace=kube-system

kubectl get service  --namespace=kube-system

kubectl describe pod kubernetes-dashboard-v1.1.0-ggmjl  --namespace=kube-system

kubectl logs -f -c kubernetes-dashboard kubernetes-dashboard-v1.1.0-ggmjl  --namespace=kube-system

参考

http://tonybai.com/2017/01/19/install-dashboard-addon-for-k8s/

猜你喜欢

转载自crabdave.iteye.com/blog/2367237
今日推荐