我无法在浏览器(Windows)中访问kubernetes仪表板

时间:2019-05-22 06:03:36

标签: kubernetes-dashboard

我已经在我的机器上安装了docker和kubernetes,Docker运行正常。在应用yaml之后运行kubernetes'kubectl代理'时。我可以看到它正在运行,但是无法从浏览器访问

我已使用以下网址从本地计算机访问 http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

{
      "metadata": {
        "name": "kubernetes-dashboard",
        "namespace": "kube-system",
        "selfLink": "/api/v1/namespaces/kube-system/services/kubernetes-dashboard",
        "uid": "dd010853-7abd-11e9-9e0c-00155d986305",
        "resourceVersion": "3035",
        "creationTimestamp": "2019-05-20T05:12:28Z",
        "labels": {
          "k8s-app": "kubernetes-dashboard"
        },
        "annotations": {
          "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"k8s-app\":\"kubernetes-dashboard\"},\"name\":\"kubernetes-dashboard\",\"namespace\":\"kube-system\"},\"spec\":{\"ports\":[{\"port\":443,\"targetPort\":8443}],\"selector\":{\"k8s-app\":\"kubernetes-dashboard\"}}}\n"
        }
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 443,
            "targetPort": 8443,
            "nodePort": 30862
          }
        ],
        "selector": {
          "k8s-app": "kubernetes-dashboard"
        },
        "clusterIP": "10.108.151.132",
        "type": "NodePort",
        "sessionAffinity": "None",
        "externalTrafficPolicy": "Cluster"
      },

0 个答案:

没有答案