简体   繁体   English

Kubernetes 仪表板 - 如何锁定 8080 访问

[英]Kubernetes Dashboard - How to lock down 8080 access

I currently have kubernetes dashboard installed and I can access the dashboard via http://ip-address:8080/ui and also https://ip-address:443/ui .我目前安装了 kubernetes 仪表板,我可以通过http://ip-address:8080/uihttps://ip-address:443/ui访问仪表板。 The latter asks for a username and password and I'm able to log into the K8s dashboard.后者要求输入用户名和密码,我可以登录 K8s 仪表板。

Question: What do I have to change to lock down 8080?问:要锁定8080,我需要更改什么? I do not want people be able to access the dashboard via port 8080.我不希望人们能够通过端口 8080 访问仪表板。

I tried changing the kubernetes-dashboard.yaml file from port 80 to 443 and targetport: 9090 to 8443, but it tells me the dashboard service cannot be found if I try to access it via HTTPS (port 443).我尝试将 kubernetes-dashboard.yaml 文件从端口 80 更改为 443,并将目标端口:9090 更改为 8443,但它告诉我,如果我尝试通过 HTTPS(端口 443)访问它,则无法找到仪表板服务。 Any advice would be good.任何建议都会很好。

您可以使用--insecure-port标志更改默认端口,如文档中所述: https : --insecure-port

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM