Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 716 Bytes
kind: Namespace
apiVersion: v1
metadata:
name: zalenium
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: zalenium
namespace: zalenium
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: zalenium-role
rules:
- verbs: ["create", "list", "get", "delete"]
apiGroups: [""]
resources: ["pods", "pods/exec"]
- verbs: ["list", "create", "delete", "get"]
apiGroups: [""]
resources: ["services"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: zalenium
subjects:
- kind: ServiceAccount
name: zalenium
namespace: zalenium
roleRef:
kind: ClusterRole
name: zalenium-role
apiGroup: rbac.authorization.k8s.io