apiVersion: apps/v1
kind: DaemonSet
metadata:
  labels:
    deploy: pod-tmp-gc
  name: pod-tmp-gc
spec:
  selector:
    matchLabels:
      app: pod-tmp-gc
  template:
    metadata:
      labels:
        app: pod-tmp-gc
      name: pod-tmp-gc
    spec:
      containers:
      - args:
        - $(NODE_NAME)
        - /pod-tmp
        env:
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        image: sourcegraph/pod-tmp-gc:latest@sha256:594b60234d0351b5e7e520709316cbc0e0c4df829540ee40ececd3e33067e9bf
        name: pod-tmp-gc
        resources:
          limits:
            cpu: 10m
            memory: 20M
        # Replace ${SSD_MOUNT_PATH} with the with the absolute directory path 
        # on the node where the local SSD is mounted.
        # See ../README.md for more information.
        # 
        # volumeMounts:
        # - mountPath: ${SSD_MOUNT_PATH}/pod-tmp
        #   name: pod-tmp
      serviceAccountName: pod-tmp-gc
  updateStrategy: {}
