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 kind: ServiceAccount
metadata: metadata:
name: cron-checker name: cron-checker
namespace: kube-system
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: cron-checker name: cron-checker
namespace: kube-system
rules: rules:
- apiGroups: ["", "batch"] - apiGroups: ["", "batch"]
resources: ["cronjobs"] resources: ["cronjobs"]
@@ -17,6 +19,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: cron-checker name: cron-checker
namespace: kube-system
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@@ -24,6 +27,7 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: cron-checker name: cron-checker
namespace: kube-system
--- ---
apiVersion: apps/v1 apiVersion: apps/v1