apiVersion: batch/v1 kind: CronJob metadata: namespace: netbox name: netbox-housekeeping spec: schedule: "15 3 * * *" concurrencyPolicy: Forbid successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 3 jobTemplate: spec: backoffLimit: 2 template: spec: restartPolicy: OnFailure securityContext: runAsUser: 999 runAsGroup: 0 fsGroup: 0 containers: - name: netbox-housekeeping image: netboxcommunity/netbox:v4.6.8-5.0.2 args: - /opt/netbox/venv/bin/python - /opt/netbox/netbox/manage.py - housekeeping resources: requests: memory: "128Mi" cpu: "50m" limits: memory: "512Mi" cpu: "500m" envFrom: - secretRef: name: netbox-app-secrets