Difference between revisions of "Kind: ClusterRole"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
  kind: ClusterRole
 
  kind: ClusterRole
  apiVersion: rbac.authorization.k8s.io/v1
+
  apiVersion: [[rbac.authorization.k8s.io/v1]]
 
  metadata:
 
  metadata:
 
   namespace: '*'
 
   namespace: '*'

Revision as of 11:19, 1 November 2022

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  namespace: '*'
  name: pod-reader
rules:
- apiGroups: ["extensions", "apps", ""]
  resources: ["pods"]
  verbs: ["get", "list", "watch"]

Ref: https://stackoverflow.com/a/53524535

Related

See also

Advertising: