公开kubernetes仪表板 [英] Expose kubernetes dashboard
问题描述
我已为 kubernetes仪表板应用了Yaml.
I've applied the yaml for the kubernetes dashboard.
现在,我想使用服务器的公共IP公开此服务: https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/#objectives
Now I want to expose this service with the public IP of my server: https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/#objectives
但是我的集群上没有服务/部署:
But there is no service/deployment on my cluster:
$ sudo kubectl get services kubernetes
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 63d
$ sudo kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
我做错了什么?
感谢您的帮助
推荐答案
您运行的命令正在默认名称空间中获取对象.
The command that you ran is fetching objects in default namespace.
但是,仪表板部署在 kube-system 名称空间上.
However, Dashboard is deployed on kube-system namespace.
kubectl -n kube-system get services kubernetes
kubectl -n kube-system get deployment
我根据您共享的链接 kubernetes仪表板向您提供此信息.即 YAML文件
I am giving you this info according to the link that you share kubernetes dashboard . And namely the YAML file
这篇关于公开kubernetes仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!