Last active
May 6, 2019 05:33
-
-
Save mvasilenko/de87bf579b4b95b3070f0eb5a2100f71 to your computer and use it in GitHub Desktop.
ns
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
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: ns1 | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: ns1-sa | |
| namespace: ns1 | |
| --- | |
| kind: Role | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: ns1-role-full-access | |
| namespace: ns1 | |
| rules: | |
| - apiGroups: ["", "extensions", "apps"] | |
| resources: ["*"] | |
| verbs: ["*"] | |
| - apiGroups: ["batch"] | |
| resources: | |
| - jobs | |
| - cronjobs | |
| verbs: ["*"] | |
| --- | |
| kind: RoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: ns1-fullaccess-role-binding | |
| namespace: ns1 | |
| subjects: | |
| - kind: ServiceAccount | |
| name: ns1-sa | |
| namespace: ns1 | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: Role | |
| name: ns1-role-full-access |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment