Difference between revisions of "Kubectl create clusterrole"
Jump to navigation
Jump to search
↑ https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1182188
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | |||
+ | {{cluster-read-only-role}} | ||
+ | |||
== Related == | == Related == | ||
− | + | * <code>[[kubectl create role]]</code> | |
+ | * <code>[[kind: ClusterRole]]</code> | ||
+ | * <code>[[kubectl get clusterroles]]</code> | ||
+ | * <code>[[kubectl auth can-i]]</code> | ||
== See also == | == See also == |
Latest revision as of 11:53, 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
Related[edit]
See also[edit]
- Kubernetes roles,
kubectl get [ roles | clusterroles | clusterrolebindings ], kubectl create rolebinding
, K8s Cluster roles - Kubernetes RBAC
kubectl auth, kubectl auth can-i, kubectl auth reconcile
kubectl create [ role | clusterrole | clusterrolebinding
|rolebinding | serviceaccount ], groups:
, Kubernetes RBAC good practices,kube2iam
, K8s Cluster roles,rbac.authorization.k8s.io
,system:
Advertising: