fix: RBAC config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user