【发布时间】:2018-06-27 00:33:42
【问题描述】:
我有kubernetes-dashboard 服务类型为ClusterIP。如何访问内部仪表板?我用的是阿里云。
我的服务.yml
---
kind: Service
apiVersion: v1
metadata:
labels:
kubernetes.io/cluster-service: "true"
app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 9090
selector:
app: kubernetes-dashboard
我想在http://MASTER_IP:80 运行我的仪表板
运行kubectl cluster-info时的状态:
Kubernetes master is running at https://MASTER_IP:6443
Heapster is running at https://MASTER_IP:6443/api/v1/namespaces/kube-system/services/heapster/proxy
KubeDNS is running at https://MASTER_IP:6443/api/v1/namespaces/kube-system/services/kube-dns/proxy
kubernetes-dashboard is running at https://MASTER_IP:6443/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
monitoring-influxdb is running at https://MASTER_IP:6443/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy
当我访问https://MASTER_IP:6443 时,我收到了错误default backend - 404。
注意:不要使用 NodePort 和 kubectl proxy。
非常感谢。
【问题讨论】:
标签: kubernetes alibaba-cloud alibaba-cloud-ecs