Difference between revisions of "Cluster-read-only-role"
Jump to navigation
Jump to search
↑ https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1182188
Line 3: | Line 3: | ||
{{cluster-read-only-role}} | {{cluster-read-only-role}} | ||
+ | |||
+ | apiVersion: rbac.authorization.k8s.io/v1 | ||
+ | kind: ClusterRoleBinding | ||
+ | metadata: | ||
+ | name: cluster-read-only-role-binding | ||
+ | subjects: | ||
+ | - [[kind: User]] | ||
+ | name: discovery-read-only-user | ||
+ | apiGroup: rbac.authorization.k8s.io | ||
+ | [[roleRef:]] | ||
+ | [[kind: ClusterRole]] | ||
+ | name: cluster-read-only-role | ||
+ | apiGroup: rbac.authorization.k8s.io | ||
* [[view]] | * [[view]] | ||
* {{K8s roles}} | * {{K8s roles}} |
Revision as of 12:16, 31 October 2023
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: cluster-read-only-role [1] rules: - apiGroups: ["*"] resources: ["*"] verbs: ["get","watch","list"] - nonResourceURLs: - /metrics verbs: - get
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: cluster-read-only-role-binding subjects: - kind: User name: discovery-read-only-user apiGroup: rbac.authorization.k8s.io roleRef: kind: ClusterRole name: cluster-read-only-role apiGroup: rbac.authorization.k8s.io
Advertising: