chart(pod-network-partition): Adding chart of the pod-network-partition experiment (#501)
Signed-off-by: shubham chaudhary <shubham@chaosnative.com>
This commit is contained in:
committed by
GitHub
parent
fa29cf9905
commit
2a60b8c537
54
charts/generic/pod-network-partition/rbac-psp.yaml
Normal file
54
charts/generic/pod-network-partition/rbac-psp.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: pod-network-partition-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: pod-network-partition-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: pod-network-partition-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: pod-network-partition-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods","events"]
|
||||
verbs: ["create","list","get","patch","update","delete","deletecollection"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec","pods/log"]
|
||||
verbs: ["list","get","create"]
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
- apiGroups: ["networking.k8s.io"]
|
||||
resources: ["networkpolicies"]
|
||||
verbs: ["create","delete","list","get"]
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
verbs: ["use"]
|
||||
resourceNames: ["litmus"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: pod-network-partition-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: pod-network-partition-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: pod-network-partition-sa
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: pod-network-partition-sa
|
||||
namespace: default
|
Reference in New Issue
Block a user