This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/kube-cleanup-operator/rbac.yaml
Tobias Brunner 90881fb49f
All checks were successful
continuous-integration/drone/push Build is passing
install kube-cleanup-operator
2020-06-21 13:11:06 +02:00

42 lines
662 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: cleanup-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cleanup-operator
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- delete
- apiGroups: ["batch", "extensions"]
resources:
- jobs
verbs:
- delete
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cleanup-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cleanup-operator
subjects:
- kind: ServiceAccount
name: cleanup-operator
namespace: kube-cleanup-operator