Last active
March 12, 2019 12:19
-
-
Save innovia/cc649b753586e991ae2416935ef978cc to your computer and use it in GitHub Desktop.
Role for serviceacocunt bound to namespace
This file contains 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: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
namespace: services-stg | |
name: deploy-stg | |
rules: | |
- apiGroups: ["", "extensions", "apps"] # "" indicates the core API group | |
resources: ["*"] | |
verbs: ["*"] | |
--- | |
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: staging-default-ns-binding | |
namespace: default | |
subjects: | |
- kind: User | |
name: system:serviceaccount:default:services-stg | |
roleRef: | |
kind: ClusterRole | |
name: view | |
apiGroup: rbac.authorization.k8s.io | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment