为什么不创建吊舱?我想测试仪表板,但需要首先根据github的建议编辑端口类型。由于某种原因,它根本没有创建任何吊舱。
有什么想法吗?
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.
答案 0 :(得分:1)
原来,这些Pod在不同的命名空间下运行。我必须包含名称空间,然后它才能显示容器。
kubectl get pods --namespace=kube-system