https://rancher.com/ logo
Title
m

melodic-hamburger-23329

08/30/2022, 3:02 AM
Any idea why I’m not seeing any resources in kubernetes-dashboard running in k3s even though logging in with a token generated for a cluster-admin account? I set up the dashboard using the helm chart.
apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin
  namespace: kube-system
---
apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
kind: ClusterRoleBinding
metadata:
  name: admin
roleRef:
  apiGroup: <http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin
  namespace: kube-system
`kubectl get clusterrole cluster-admin -oyaml`:
apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
kind: ClusterRole
metadata:
  annotations:
    <http://rbac.authorization.kubernetes.io/autoupdate|rbac.authorization.kubernetes.io/autoupdate>: "true"
  creationTimestamp: "2022-08-29T05:57:20Z"
  labels:
    <http://kubernetes.io/bootstrapping|kubernetes.io/bootstrapping>: rbac-defaults
  name: cluster-admin
  resourceVersion: "72"
  uid: f381f7e3-9f54-4da5-bcc4-39745a2e8bbd
rules:
- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - '*'
- nonResourceURLs:
  - '*'
  verbs:
  - '*'
Not sure why, but the issue seems to have solved after I created the dashboard to kubernetes-dashboard namespace instead of kube-system