# (1) master节点上执行安装 kubectl apply -f https://kuboard.cn/install-script/kuboard.yaml # deployment.apps/kuboard created # service/kuboard created # serviceaccount/kuboard-user created # clusterrolebinding.rbac.authorization.k8s.io/kuboard-user created # serviceaccount/kuboard-viewer created # clusterrolebinding.rbac.authorization.k8s.io/kuboard-viewer created
kubectl apply -f https://addons.kuboard.cn/metrics-server/0.3.6/metrics-server.yaml # clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created # clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator created # rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader created # clusterrole.rbac.authorization.k8s.io/system:metrics-server created # clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server created # apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created # serviceaccount/metrics-server created # deployment.apps/metrics-server created # service/metrics-server created
# (2) 查看 Kuboard 运行状态 kubectl get pods -l k8s.kuboard.cn/name=kuboard -n kube-system # NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES # kuboard-7bb89b4cc4-p2br8 1/1 Running 0 4m48s 10.100.202.193 worker-03 <none> <none>
2.进入POD容器中执行终端命令报错Error from server: error dialing backend 问题描述:
1 2 3
# kubectl exec buybox-app-7d6f4bbd86-ws4bh -n hello-world sh # kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead. # Error from server: error dialing backend: dial tcp 10.20.172.200:10250: connect: no route to host
方式1.请访问本博主的B站【WeiyiGeek】首页关注UP主, 将自动随机获取解锁验证码。
Method 2.Please visit 【My Twitter】. There is an article verification code in the homepage.
方式3.扫一扫下方二维码,关注本站官方公众号
回复:验证码
将获取解锁(有效期7天)本站所有技术文章哟!