1 本地生成镜像后 迁移docker镜像 sudo docker save -o captain-dashboard-v1.5.1B.tar gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.1
2 sudo docker load -i k8s-liuxiaoyong-v1.5.1
3 更名: sudo docker tag 0959d1a4dbb6(ID) localhost/captain-dashboard:v1.5.2
去213 salve节点
4 去212 master节点 cd /srv/kubernetes/manifests/ vi kube-dashboard.yaml images 修改
5 kubectl get service --all-namespaces
kubectl get rc --all-namespaces
kubectl get deployments --all-namespaces
kubectl delete deployments kubernetes-dashboard --all-namespaces
kubectl delete deployments kubernetes-dashboard --namespace kube-system
kubectl get deployments --all-namespaces
kubectl get service --all-namespaces
kubectl delete service kubernetes-dashboard --namespace kube-system
kubectl create -f kube-dashboard.yaml
kubectl get service --all-namespaces
kubectl get deployments --all-namespaces
kubectl get pod --all-namespaces