Closed ghost closed 3 years ago
But I have enabled namespace support here, what is the cause of this, is it a mirroring problem
# kubectl get ns --show-labels
NAME STATUS AGE LABELS
default Active 6d6h goldilocks.fairwinds.com/enabled=true
goldilocks Active 99m goldilocks.fairwinds.com/enabled=true,name=goldilocks,system/namespace=goldilocks,system/tenant-id=TENANT-xxH6MimNDozf
kube-node-lease Active 6d6h goldilocks.fairwinds.com/enabled=true
kube-public Active 6d6h goldilocks.fairwinds.com/enabled=true
kube-system Active 6d6h goldilocks.fairwinds.com/enabled=true
Error getting namespace list
usually indicates that the dashboard pod doesn't have the correct RBAC permissions to view namespaces. How did you deploy the dashboard?
@zhaocheng173 you possibly need to update the clusterrole for your dashboard as follows:
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: goldilocks-dashboard
labels:
app: goldilocks
rules:
- apiGroups:
- 'autoscaling.k8s.io'
resources:
- 'verticalpodautoscalers'
verbs:
- 'get'
- 'list'
- apiGroups:
- 'apps'
resources:
- 'deployments'
verbs:
- 'get'
- 'list'
- apiGroups:
- '' # core
resources:
- 'namespaces'
verbs:
- 'get'
- 'list'
The rbac solution above should fix. Please reopen if not
The visit page did not get a namespace