Created
January 18, 2020 14:00
-
-
Save Nurlan199206/77a685126ac9165aed37b5ba9e65715e to your computer and use it in GitHub Desktop.
clusterrole create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
namespace: default | |
name: service-reader | |
rules: | |
- apiGroups: [""] # "" indicates the core API group | |
resources: ["services"] | |
verbs: ["get", "watch", "list"] | |
kubectl create clusterrolebinding default \ | |
--clusterrole=default \ | |
--serviceaccount=default:default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment