Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created January 22, 2020 20:55
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 vfarcic/cf17e396b8acbac5106a652dfae0ccbc to your computer and use it in GitHub Desktop.
Save vfarcic/cf17e396b8acbac5106a652dfae0ccbc to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: chaostoolkit
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: chaostoolkit
rules:
- apiGroups:
- ""
- "extensions"
- "apps"
resources:
- pods
- deployments
- jobs
verbs:
- list
- get
- watch
- delete
- apiGroups:
- ""
resources:
- "persistentvolumeclaims"
verbs:
- list
- get
- create
- delete
- update
- patch
- watch
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: chaostoolkit
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: chaostoolkit
subjects:
- kind: ServiceAccount
name: chaostoolkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment