job.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: guix-refresh
  5. spec:
  6. backoffLimit: 0
  7. template:
  8. spec:
  9. hostNetwork: true
  10. hostPID: true
  11. nodeSelector:
  12. kubernetes.io/hostname: kube1
  13. restartPolicy: Never
  14. containers:
  15. - command:
  16. - nsenter
  17. - --target
  18. - "1"
  19. - --mount
  20. - --uts
  21. - --ipc
  22. - --net
  23. - --pid
  24. - --no-fork
  25. - entrypoint
  26. env:
  27. - name: GUIX_SOURCE_DIRECTORY
  28. value: /home/oleg/src/git.savannah.gnu.org/git/guix
  29. - name: GUIX_SCRIPT
  30. value: /home/oleg/.local/share/chezmoi/dot_local/bin/executable_guix-refresh.sh
  31. - name: NIX_SYSTEM
  32. value: x86_64-linux
  33. image: docker-registry.wugi.info/library/util-linux-with-udev
  34. name: refresh
  35. resources:
  36. limits:
  37. cpu: 4000m
  38. memory: 4096Mi
  39. requests:
  40. cpu: 1000m
  41. memory: 512Mi
  42. securityContext:
  43. privileged: true