首页 > 解决方案 > Kubernetes 仪表板未创建 pod

问题描述

为什么这不创建 pod?我想测试仪表板,但我需要先按照github上的建议编辑端口类型。出于某种原因,它根本没有创建任何 pod。

知道这里有什么问题吗?

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

secret/kubernetes-dashboard-certs created
serviceaccount/kubernetes-dashboard created
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
deployment.apps/kubernetes-dashboard created
service/kubernetes-dashboard created


root@osboxes:~/kubernetes-course/dashboard# kubectl get pods
No resources found in default namespace.

标签: kubernetes

解决方案


原来这些 pod 在不同的命名空间下运行。我必须包含命名空间,然后它会显示 pod。

kubectl get pods --namespace=kube-system

推荐阅读