<p>I have a Scala App running on a Service, using a PostgreSql Service,
Tables are being created by the database management plugin (Slick)</p>

<p>however, need to edit a particular table and I cant find it!</p>

<p>postgres service:</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: core-db
spec:
  ports:
    - port: 5432
  selector:
    app: core-db
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: core-db
spec:
  template:
    metadata:
      labels:
        app: core-db
    spec:
      containers:
        - image: "image"
          name: core-db
          imagePullPolicy: IfNotPresent
          env:
            - name: POSTGRES_USER
              value: postgres
            - name: POSTGRES_PASSWORD
              value: postgres
          ports:
            - containerPort: 5432
              name: core-db
          volumeMounts:
            - name: core-storage
              mountPath: /var/lib/postgresql/db-data
      volumes:
          - name: core-storage
            persistentVolumeClaim:
                claimName: core-pv-claim
      imagePullSecrets:
        - name: regcred
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: core-pv-claim
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 100Mi
</code></pre>

<p>I get in the pod:</p>

<pre><code>kubectl exec POD -it -- psql -U postgres
</code></pre>

<p>but \d shows no relations</p>

<p>What I am doing wrong, where is my data after all ? </p>

<p><strong>EDIT</strong></p>

<pre><code>\l
postgres  
app   
template0 
template1 

\c postgres
\dt
No relations found.

\c app
\dt
No relations found.
</code></pre>

<p>Ok so, it happens that I just lacked some brain activity.</p>

<p>All my tables are stored into Schemas, and that's the reason I can see them when I use \dt on any of the databases</p>

<p>Connecting to the 'app' database and using \dn will list the schemas and thus, we can find the tables.</p>

<p>Select "schema".table is how it works...</p>

<p>Thanks to @NicolaBen, those steps helped me.</p>
