title: How can I properly provision a volume for argo?
body: <p>I have a persistent volume running in the correct namespace:</p>
  <pre><code>apiVersion: v1
  kind: PersistentVolume
  metadata:
    name: raw-data
  spec:
    accessModes:
      - ReadWriteOnce
    capacity:
      storage: 2Gi
    hostPath: 
      path: /data
    storageClassName: storage
  </code></pre>
  <p>and would like to run a workflow that contains a volume claim template:</p>
  <pre><code>...
    volumeClaimTemplates:
    - metadata:
        name: raw-data
      spec:
        accessModes: [&quot;ReadWriteOnce&quot;]
        resources:
          requests:
            storage: 2Gi
  </code></pre>
  <p>I believe my configuration is consistent with that described here
  <a href="https://stackoverflow.com/a/52669115/213269">https://stackoverflow.com/a/52669115/213269</a> However, there are some differences since I am working on argo not kubernetes. I am receiving the following error:</p>
  <pre><code> Unschedulable: 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
  </code></pre>
  <p>Question: How do I properly provision the volume?</p>
  <p>UPDATE:</p>
  <p>I have tried deploying a persistent volume into the argo namespace and pointing to it from the workflow and am now getting the following error:</p>
  <pre><code>persistentvolumeclaims &quot;workflow-name&quot; is forbidden: User &quot;system:serviceaccount:argo:argo&quot; cannot get resource &quot;persistentvolumeclaims&quot; in API group &quot;&quot; in the namespace &quot;argo&quot;
  </code></pre>
  <p>I have also added a new user and context to the Kubernetes configuration to no avail.</p>
  <p>UPDATE:</p>
  <p>I added the following role and now the error has changed from &quot;...User cannot get resource...&quot; to &quot;User cannot create resource...&quot;  Note that my user does have permission to create persistentvolumeclaims.</p>
  <pre><code>apiVersion: rbac.authorization.k8s.io/v1                                                                                                                                                                         kind: Role                                                                                                                                                                                                       metadata:                                                                                                                                                                                                          name: workflow                                                                                                                                                                                                   namespace: argo                                                                                                                                                                                                rules:                                                                                                                                                                                                           - apiGroups:                                                                                                                                                                                                       - &quot;&quot;                                                                                                                                                                                                             resources:                                                                                                                                                                                                       - pods                                                                                                                                                                                                           verbs:                                                                                                                                                                                                           - get                                                                                                                                                                                                            - list                                                                                                                                                                                                           - watch                                                                                                                                                                                                          - create                                                                                                                                                                                                         - update                                                                                                                                                                                                         - patch                                                                                                                                                                                                          - delete                                                                                                                                                                                                       - apiGroups:                                                                                                                                                                                                       - &quot;&quot;                                                                                                                                                                                                             resources:                                                                                                                                                                                                       - pods/log                                                                                                                                                                                                       verbs:                                                                                                                                                                                                           - get                                                                                                                                                                                                            - list                                                                                                                                                                                                           - watch                                                                                                                                                                                                          - create                                                                                                                                                                                                         - update                                                                                                                                                                                                         - patch                                                                                                                                                                                                          - delete                                                                                                                                                                                                       - apiGroups:                                                                                                                                                                                                       - &quot;&quot;                                                                                                                                                                                                             resources:                                                                                                                                                                                                        - persistentvolumeclaims                                                                                                                                                                                        verbs:                                                                                                                                                                                                           - get                                                                                                                                                                                                            - list                                                                                                                                                                                                           - watch                                                                                                                                                                                                          - create                                                                                                                                                                                                         - update                                                                                                                                                                                                         - patch                                                                                                                                                                                                          - delete 
  </code></pre>