Skip to content

Instantly share code, notes, and snippets.

@michalpenka
Created March 20, 2020 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michalpenka/e843524c7a74eeea3ba9f3e1801f4d8c to your computer and use it in GitHub Desktop.
Save michalpenka/e843524c7a74eeea3ba9f3e1801f4d8c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: sa-azdo-helloworld-sc
namespace: helloworld
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: rle-azdo-helloworld-sc
namespace: helloworld
rules:
- apiGroups: ["*"]
resources: ["deployments", "services", "ingresses"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: rbn-azdo-helloworld-sc
namespace: helloworld
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: rle-azdo-helloworld-sc
subjects:
- namespace: helloworld
kind: ServiceAccount
name: sa-azdo-helloworld-sc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment