2020-08-26 16:50:59 +02:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
metadata:
|
|
|
|
|
name: cron-checker
|
2020-08-27 10:27:51 +02:00
|
|
|
namespace: kube-system
|
2020-08-26 16:50:59 +02:00
|
|
|
---
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
metadata:
|
|
|
|
|
name: cron-checker
|
2020-08-27 10:27:51 +02:00
|
|
|
namespace: kube-system
|
2020-08-26 16:50:59 +02:00
|
|
|
rules:
|
|
|
|
|
- apiGroups: ["", "batch"]
|
|
|
|
|
resources: ["cronjobs"]
|
|
|
|
|
verbs: ["list", "watch", "get"]
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
|
metadata:
|
|
|
|
|
name: cron-checker
|
2020-08-27 10:27:51 +02:00
|
|
|
namespace: kube-system
|
2020-08-26 16:50:59 +02:00
|
|
|
roleRef:
|
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
name: cron-checker
|
|
|
|
|
subjects:
|
|
|
|
|
- kind: ServiceAccount
|
|
|
|
|
name: cron-checker
|
2020-08-27 10:27:51 +02:00
|
|
|
namespace: kube-system
|
2020-08-26 16:50:59 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2025-01-24 15:39:11 +01:00
|
|
|
app.kubernetes.io/name: cron-checker
|
2020-08-26 16:50:59 +02:00
|
|
|
name: cron-checker
|
|
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
2025-01-24 15:39:11 +01:00
|
|
|
app.kubernetes.io/name: cron-checker
|
2020-08-26 16:50:59 +02:00
|
|
|
strategy:
|
|
|
|
|
rollingUpdate:
|
|
|
|
|
maxSurge: 1
|
|
|
|
|
maxUnavailable: 1
|
|
|
|
|
type: RollingUpdate
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2025-01-24 15:39:11 +01:00
|
|
|
app.kubernetes.io/name: cron-checker
|
2020-08-26 16:50:59 +02:00
|
|
|
spec:
|
|
|
|
|
serviceAccountName: cron-checker
|
|
|
|
|
containers:
|
|
|
|
|
- name: cron-checker
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: "50Mi"
|
|
|
|
|
requests:
|
|
|
|
|
memory: "50Mi"
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
2022-09-23 20:12:11 +02:00
|
|
|
image: registry.gitlab.com/unboundsoftware/cron-checker:1.2
|
2020-08-26 16:50:59 +02:00
|
|
|
args:
|
|
|
|
|
- /cron-checker
|
|
|
|
|
env:
|
|
|
|
|
- name: SLACK_URL
|
|
|
|
|
value: <some Slack webhook URL>
|
|
|
|
|
restartPolicy: Always
|