title: How to access locally installed postgresql in microk8s cluster
body: <p>I have installed Postgresql and microk8s on Ubuntu 18.<br>
  One of my microservice which is inside microk8s single node cluster needs to access postgresql installed on same VM.<br>
  Some articles suggesting that I should create service.yml and endpoint.yml like this.</p>
  
  <pre><code>apiVersion: v1
  metadata:
   name: postgresql
  spec:
   type: ClusterIP
   ports:
   - port: 5432
     targetPort: 5432
  
  ---
  
  kind: Endpoints
  apiVersion: v1
  metadata:
   name: postgresql
  subsets:
   - addresses:
       - ip: ?????
     ports:
       - port: 5432
  </code></pre>
  
  <p>Now, I am not getting what should I put in <strong>subsets.addresses.ip</strong> field ?</p>