Kubernetes dashboard on RKE2

I tried with both helm installation and following the official docs on kubernetes.io with kubectl apply…

both give me error:

    message: 'pods "my-dashboard-kubernetes-dashboard-549565d49c-" is forbidden: PodSecurityPolicy:
      unable to admit pod: [pod.metadata.annotations[seccomp.security.alpha.kubernetes.io/pod]:
      Forbidden: seccomp may not be set pod.metadata.annotations[container.seccomp.security.alpha.kubernetes.io/kubernetes-dashboard]:
      Forbidden: seccomp may not be set]'

The helm installation says this for the kubernetes-dashboard deployment while the github recommended.yaml succeeds to start the kubernetes dashboard deployment (and pod) it says this error for dashboard-metrics-scraper deployment

1 Like