我运行以下命令:
kubectl config get-contexts
我没有任何名称空间...但是当我进入仪表板时,我可以看到创建了2个名称空间?
config:
apiVersion: v1
clusters:
- cluster:
server: https://name_of_company
name: cluster
contexts:
- context:
cluster: cluster
user: ME
name: ME@cluster
current-context: ME@cluster
kind: Config
preferences: {}
users:
- name: MY NAME
user:
auth-provider:
config:
client-id: MY ID
id-token: MY ID TOKEN
idp-issuer-url: https://name_of_company/multiauth
name: oidc
答案 0 :(得分:2)
请使用命令kubectl get namespace
列出集群中的名称空间。
请检查 https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
答案 1 :(得分:1)