<p>For some reason, the postgres instance isn't being locked down with a password using the following kubernetes script.</p>

<pre><code>apiVersion: v1
kind: ReplicationController
metadata:
    name: postgres
    labels:
        name: postgres
spec:
    replicas: 1
    template:
      metadata:
        labels:
          name: postgres
      spec:
        containers:
          - resources:
            image: postgres:9.4
            name: postgres
            env:
              - name: DB_PASS
                value: password
              - name: PGDATA
                value: /var/lib/postgresql/data/pgdata
            ports:
              - containerPort: 5432
                name: postgres
            volumeMounts:
              - mountPath: /var/lib/postgresql/data
                name: postgres-persistent-storage
        volumes:
          - name: postgres-persistent-storage
            gcePersistentDisk:
              pdName: postgres-disk
              fsType: ext4
</code></pre>

<p>Any ideas?</p>

<p>According to the <a href="https://hub.docker.com/_/postgres/" rel="nofollow">docker hub documentation</a> for the postgres image you should be using the environment variable <code>POSTGRES_PASSWORD</code> instead of <code>DB_PASSWORD</code>. </p>
