Hi Team. I created Standard User, and assign that ...
# general
g
Hi Team. I created Standard User, and assign that user to be Project Owner of a Project in Rancher. That user can create Namespace in the Project through Rancher UI. But he cannot create Namespace in the Project through kubectl with his kubeconfig. The error is: User cannot get resource “namespace” in API Group in the namespace: RBAC: clusterrole.rbac.authorization.k8s.io not found. How can I fix that? Thank you. My yaml file to create ns:
Copy code
apiVersion: v1
kind: Namespace
metadata:
  name: test-namespace
  annotations:
    <http://field.cattle.io/resourceQuota:|field.cattle.io/resourceQuota:> >-
      {"limit":{"limitsCpu":"12m","limitsMemory":"100Mi","persistentVolumeClaims":"5"}}
    <http://field.cattle.io/containerDefaultResourceLimit:|field.cattle.io/containerDefaultResourceLimit:> '{}'
    <http://field.cattle.io/projectId:|field.cattle.io/projectId:> c-m-rbd52wfb:p-p8mrq
  labels:
    <http://field.cattle.io/projectId:|field.cattle.io/projectId:> p-p8mrq