# Kong ingress controller with CP and postgres?

**URL:** <https://discuss.konghq.com/t/kong-ingress-controller-with-cp-and-postgres/8534>\
**Category:** Questions\
**Created:** [June 14, 2021, 1:45pm UTC](https://discuss.konghq.com/t/kong-ingress-controller-with-cp-and-postgres/8534 "2021-06-14T13:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/george_a/32/2804_2.png) [@George\_A](https://discuss.konghq.com/u/George_A)\
**Post date:** [June 14, 2021, 1:45pm UTC](https://discuss.konghq.com/t/kong-ingress-controller-with-cp-and-postgres/8534/1 "2021-06-14T13:45:28Z")

</div>

Hi

I have deployed a kong control plane with postgres DB (using helm and working fine) and I want to use kong ingress controller deployment to be in sync with the CP.

Im using the following values.yaml for controller:

```auto
image:
  repository: kong
  tag: "2.4.1"

env:
  prefix: /kong_prefix/
  database: "off"
  role: data_plane
  cluster_control_plane: kongcontrolplane-kong-cluster.kong.svc.cluster.local:8005
  lua_ssl_trusted_certificate: /etc/secrets/kong-cluster-cert/tls.crt
  cluster_cert: /etc/secrets/kong-cluster-cert/tls.crt
  cluster_cert_key: /etc/secrets/kong-cluster-cert/tls.key

secretVolumes:
- kong-cluster-cert

ingressController:
  enabled: true
  installCRDs: false
  image:
    repository: kong/kubernetes-ingress-controller
    tag: "1.3.0"

  env:
    kong_admin_tls_skip_verify: true
    kong-admin-url: http://kongcontrolplane-kong-admin.kong.svc.cluster.local:8444

```

In controller logs I see the following error:  
time=“2021-06-14T13:36:20Z” level=info msg=“retry 4 to fetch metadata from kong: making HTTP request: Get “[https://localhost:8444/](https://localhost:8444/)”: dial tcp 127.0.0.1:8444: connect: connection refused”

events logs: Readiness probe failed: Get “[http://10.1.3.86:10254/healthz](http://10.1.3.86:10254/healthz)”: dial tcp 10.1.3.86:10254: connect: connection refused

Any help or sample values file would be appreciated.
