title: Relation between redis/postgres volume claim and application configuration
body: <p>I would run Redis for caching with separate Pod in k8s using <a href="https://github.com/helm/charts/tree/master/stable/redis" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/redis</a> chart.</p>
  
  <p>So redis is managing PVC and using for persistence and in my opinion my application's pod should ideally only need to connect to redis as a service. So, this host:port should be enough as far as I can think..This situation is same as any database.</p>
  
  <p>So my doubt is, should I make any extra configuration in application's yaml for volume which is relates with Redis or PostgreSQL? I mean, should application's pod mount it as well? What is the common usage for following best practices to connect redis or database from application's pod?</p>
  
  <p><strong>i.e parts of configuration in redis for volume</strong></p>
  
  <pre><code>   enabled: true
      path: /data
      subPath: ""
      accessModes:
      - ReadWriteOnce
      size: 8Gi
      matchLabels: {}
      matchExpressions: {}
  </code></pre>
  
  <p><strong>Application's deployment.yaml</strong></p>
  
  <pre><code>env:     
        - name: REDIS_HOST
          value: redis-master
        - name: REDIS_PORT
          value: "6379"
  
  
  
  
  - name: POSTGRES_HOST
                valueFrom:
                  configMapKeyRef:
                    name: {{ .Release.Name }}-config
                    key: POSTGRES_HOST
              - name: POSTGRES_PORT
                valueFrom:
                  configMapKeyRef:
                    name: {{ .Release.Name }}-config
                    key: POSTGRES_PORT
              - name: POSTGRES_DB
                valueFrom:
                  configMapKeyRef:
                    name: {{ .Release.Name }}-config
                    key: POSTGRES_DB
  </code></pre>