apiVersion: batch/v1 kind: CronJob metadata: name: check-pihole-updates namespace: app-notifications spec: schedule: "0 7 * * *" successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 1 jobTemplate: spec: template: spec: containers: - name: curl image: curlimages/curl:latest command: ["curl"] args: - -s - -X - GET - http://service-docker-repository-query-internal:5000/pihole restartPolicy: OnFailure