K8 usecases (#355)

* Changes for chaostoolkit
This commit is contained in:
sumit Nagal
2020-10-26 09:10:19 -07:00
committed by GitHub
parent aaddf565be
commit 2df1f674a3
50 changed files with 1917 additions and 181 deletions

View File

@@ -0,0 +1,45 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argowf-role
namespace: default
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get","watch","patch","list"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get","watch"]
- apiGroups: ["argoproj.io"]
resources: ["workflow","workflows"]
verbs: ["get","create","update","patch","delete","list","watch"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
verbs: ["get","create","delete","list"]
- apiGroups: ["","litmuschaos.io"]
resources: ["chaosengines","chaosexperiments","chaosresults"]
verbs: ["get","create","update","patch","delete","list","watch","deletecollection"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: argowf-svcacc
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: argowf-rolebinding
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argowf-role
subjects:
[
{
"kind": "ServiceAccount",
"name": "argowf-svcacc",
"namespace": "default"
}
]