Kubernetes extension plugin Dashboard installation

Kubernetes extension plugin Dashboard installation

 

 

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

View exported random ports

http://node IP:random port

 

 

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

 

refer to

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

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326569441&siteId=291194637