Skip to content

Commit

Permalink
Merge pull request #30 from klautcomputing/add-rbac-file
Browse files Browse the repository at this point in the history
Adds rbac example
  • Loading branch information
linki authored Jun 30, 2017
2 parents cfcf768 + a3e73d8 commit c9d079e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/chaoskube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
labels:
app: chaoskube
spec:
serviceAccountName: chaoskube
containers:
- name: chaoskube
image: quay.io/linki/chaoskube:v0.5.0
Expand All @@ -27,3 +28,10 @@ spec:
- --namespaces=!kube-system
# do not actually kill anything
- --dry-run

---

apiVersion: v1
kind: ServiceAccount
metadata:
name: chaoskube
23 changes: 23 additions & 0 deletions examples/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: chaoskube
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list", "delete"]

---

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: chaoskube
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: chaoskube
subjects:
- kind: ServiceAccount
name: chaoskube
namespace: default

0 comments on commit c9d079e

Please sign in to comment.