apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: netbox-vsphere-sync
  labels:
    app: netbox-vsphere-sync
spec:
  schedule: "10 7-23 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: netbox-vsphere-sync
            image: bbricardo/netbox-sync:latest
            imagePullPolicy: IfNotPresent
            volumeMounts:
            - name: netbox-vsphere-sync
              mountPath: /app/settings.ini
              subPath: settings.ini
          volumes:
          - name: netbox-vsphere-sync
            secret:
              secretName: netbox-vsphere-sync
          restartPolicy: Never
