cron-email-stats.yaml 942 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: batch/v1beta1
  2. kind: CronJob
  3. metadata:
  4. name: email-stats
  5. spec:
  6. schedule: "0 13 * * WED,SUN"
  7. jobTemplate:
  8. spec:
  9. template:
  10. spec:
  11. containers:
  12. - name: email-stats
  13. image: gethue/hue:latest
  14. imagePullPolicy: IfNotPresent
  15. args:
  16. - /bin/bash
  17. - -c
  18. - ./build/env/bin/hue send_query_stats
  19. volumeMounts:
  20. - name: config-volume
  21. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  22. subPath: hue-ini
  23. - name: config-volume-extra
  24. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  25. subPath: hue-ini
  26. restartPolicy: OnFailure
  27. volumes:
  28. - name: config-volume
  29. configMap:
  30. name: hue-config
  31. - name: config-volume-extra
  32. configMap:
  33. name: hue-config-extra