我有以下服务Kubernetes仪表盘是否NodePort上
Name: kubernetes-dashboard
Namespace: kube-system
Labels: k8s-app=kubernetes-dashboard
kubernetes.io/cluster-service=true
Annotations: kubectl.kubernetes.io/last-applied-configuration={"kind":"Service","apiVersion":"v1","metadata":{"name":"kubernetes-dashboard","namespace":"kube-system","creationTimestamp":null,"labels":{"k8s-app":"k...
Selector: k8s-app=kubernetes-dashboard
Type: NodePort
IP: 10.0.106.144
Port: <unset> 80/TCP
NodePort: <unset> 30177/TCP
Endpoints: 10.244.0.11:9090
Session Affinity: None
Events: <none>
Azure的集装箱服务(Kubernetes)工作,按照documentation,我跑
az acs kubernetes browse
但我想在群集外访问它。该输出描述说,它在端口30177.
使用NodePort暴露但我不能够访问它http://<any node IP>:30177
FWIW一个公共IP暴露你的仪表板将是一个安全问题。你有没有尝试先用nodeport运行一个nginx容器?同时检查您的NSG设置,查看是否有任何防火墙端口在您使用nodeport提供服务时打开。 –
任何人都有关于这个问题的线索。请帮助https://stackoverflow.com/q/47597267/7296379 – jk1510