fix: RBAC config

This commit is contained in:
2020-08-27 10:27:51 +02:00
parent 88be7ec492
commit 1c6064ccae
+4
View File
@@ -2,11 +2,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: cron-checker
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cron-checker
namespace: kube-system
rules:
- apiGroups: ["", "batch"]
resources: ["cronjobs"]
@@ -17,6 +19,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cron-checker
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -24,6 +27,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: cron-checker
namespace: kube-system
---
apiVersion: apps/v1