apiVersion: v1
kind: Pod
metadata:
  name: hostpath-provisioner
  namespace: default
spec:
  containers:
    - name: hostpath-provisioner
      image: relaysh/relay-hostpath-provisioner:latest
      imagePullPolicy: "IfNotPresent"
      env:
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
      volumeMounts:
        - name: pv-volume
          mountPath: /tmp/hostpath-provisioner
  serviceAccountName: hostpath-provisioner
  volumes:
    - name: pv-volume
      hostPath:
        path: /tmp/hostpath-provisioner
