Unable to list deployments resources using RBAC

前端 未结 2 796
逝去的感伤
逝去的感伤 2021-01-06 15:52

I am using a x509 authentication for a user in Kubernetes, which works fine. However, while provide access to the deployments does not seem to be working fine, as shown belo

相关标签:
2条回答
  • 2021-01-06 16:12

    replicasets and deployments exist in the "extensions" and "apps" API groups, not in the legacy "" group

    try:

    rules:
    - apiGroups:
      - ""
      resources:
      - pods
      - secrets
      - services
      - persistentvolumeclaims
      verbs:
      - get
      - list
      - watch
    - apiGroups:
      - extensions
      - apps
      resources:
      - deployments
      - replicasets
      verbs:
      - get
      - list
      - watch
    
    0 讨论(0)
  • 2021-01-06 16:18

    If I understand you correctly..

    Check:

    kubectl describe clusterrole |grep devops-role
    kubectl describe clusterrole |grep devops-rb
    kubectl describe clusterrole | less
    
    0 讨论(0)
提交回复
热议问题