CRONJOB
unknown
yaml
a year ago
772 B
3
Indexable
--- apiVersion: batch/v1beta1 kind: CronJob metadata: name: sts-kapua-broker-restart namespace: kapua spec: concurrencyPolicy: Forbid schedule: '0 1 * * *' # cron spec of time, here every other hour jobTemplate: spec: backoffLimit: 2 activeDeadlineSeconds: 600 # timeout, makes most sense with template: spec: serviceAccountName: kapua-broker # name of the service restartPolicy: Never containers: - name: kubectl image: fra.ocir.io/sisalspa/base-images/kubectl:1.20 command: - 'kubectl' - 'rollout' - 'restart' - 'statefulsets/kapua-broker' imagePullSecrets: - name: regcred
Editor is loading...