system-config/kubernetes/zuul/components/restarter/job-restart-nodepool-launcher.yaml
2023-06-26 13:55:08 +02:00

28 lines
724 B
YAML

---
apiVersion: batch/v1
kind: CronJob
metadata:
name: "restart-nodepool-launcher"
spec:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 2
concurrencyPolicy: Forbid
schedule: '15 22 * * *'
jobTemplate:
spec:
backoffLimit: 2
activeDeadlineSeconds: 600
template:
spec:
serviceAccountName: "restart-deployment"
restartPolicy: Never
containers:
- name: "kubectl"
image: "bitnami/kubectl"
command:
- "bash"
- "-c"
- >-
kubectl rollout restart deployment/nodepool-launcher &&
kubectl rollout status deployment/nodepool-launcher