job.yaml 651 B

1234567891011121314151617181920212223242526
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: vendir
  5. annotations:
  6. # Setting spec.force to true will make Flux recreate the Job when any
  7. # immutable field is changed, forcing the Job to run every time the
  8. # container image tag changes.
  9. kustomize.toolkit.fluxcd.io/force: enabled
  10. spec:
  11. backoffLimit: 0
  12. template:
  13. spec:
  14. hostNetwork: true
  15. restartPolicy: Never
  16. containers:
  17. - name: vendir
  18. image: harbor.home.wugi.info/library/vendir:latest
  19. resources:
  20. limits:
  21. cpu: 14000m
  22. memory: 4096Mi
  23. requests:
  24. cpu: 1000m
  25. memory: 512Mi