apiVersion: batch/v1
kind: Job
metadata:
  name: local-volume-provisioner-bootstrap
  namespace: kube-system
  labels:
    app: local-volume-provisioner-bootstrap
spec:
  template:
    spec:
      serviceAccountName: local-storage-bootstrapper
      restartPolicy: Never
      containers:
      - name: bootstrapper
        image: quay.io/external_storage/local-volume-provisioner-bootstrap:latest
        env:
        - name: MY_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        args:
        - --image=quay.io/external_storage/local-volume-provisioner:latest
        - --volume-config=local-volume-config
