title: Create a postgresql deployment using the postgresql-persistent template in OpenShift
body: <p>I created an OpenShift instance on my computer using the <code>oc cluster up</code> command.</p>
  
  <p>Then I want to create a postgresql application deployment using a template. 
  If I do it through the OpenShift UI it works well.</p>
  
  <p>but if I do it using this command :</p>
  
  <pre><code>oc new-app --template=postgresql-persistent --param=NAMESPACE=airsonic-demo --param=DATABASE_SERVICE_NAME=postgresql --param=POSTGRESQL_USER=airsonic --param=POSTGRESQL_PASSWORD=**** --param=POSTGRESQL_DATABASE=airsonic --param=VOLUME_CAPACITY=30Mi --param=POSTGRESQL_VERSION=9.5
  </code></pre>
  
  <p>it does not work because the resulting deployment config has no image and I got the following message when I want to deploy this application.</p>
  
  <blockquote>
    <p>Reason: cannot trigger a deployment for "postgresql" because it
    contains unresolved images</p>
  </blockquote>
  
  <p>Indeed, here is a snippet of the deployment config descriptor. The <em>image</em> entry is empty.</p>
  
  <pre><code>spec:
    containers:
      - env:
          - name: POSTGRESQL_USER
            valueFrom:
              secretKeyRef:
                key: database-user
                name: postgresql
          - name: POSTGRESQL_PASSWORD
            valueFrom:
              secretKeyRef:
                key: database-password
                name: postgresql
          - name: POSTGRESQL_DATABASE
            valueFrom:
              secretKeyRef:
                key: database-name
                name: postgresql
        image: ' '
  </code></pre>