apiVersion: batch/v1
kind: Job
metadata:
  name: guix-refresh
spec:
  backoffLimit: 0
  template:
    spec:
      hostNetwork: true
      hostPID: true
      nodeSelector:
        kubernetes.io/hostname: kube1
      restartPolicy: Never
      containers:
      - command:
        - nsenter
        - --target
        - "1"
        - --mount
        - --uts
        - --ipc
        - --net
        - --pid
        - --no-fork
        - entrypoint
        env:
        - name: GUIX_SOURCE_DIRECTORY
          value: /home/oleg/src/git.savannah.gnu.org/git/guix
        - name: GUIX_SCRIPT
          value: /home/oleg/.local/share/chezmoi/dot_local/bin/executable_guix-refresh.sh
        - name: NIX_SYSTEM
          value: x86_64-linux
        image: docker-registry.wugi.info/library/util-linux-with-udev
        name: refresh
        resources:
          limits:
            cpu: 4000m
            memory: 4096Mi
          requests:
            cpu: 1000m
            memory: 512Mi
        securityContext:
          privileged: true
