如何在工作节点上运行Kubernetes仪表板?

时间:2019-12-05 09:32:08

标签: kubernetes kubernetes-pod kubernetes-cluster

我已使用以下命令来部署K8S仪表板:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml

kubectl proxy

它表示仪表板在主节点上的以下URL上运行:

  

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

如何在工作节点上部署仪表板?

1 个答案:

答案 0 :(得分:1)

您可以从YAML中注释或删除以下部分

      # Comment the following tolerations if Dashboard must not be deployed on master
      tolerations:
        - key: node-role.kubernetes.io/master
          effect: NoSchedule