1 This README explains how to install Kong in DB-backed mode with Postgres and Cert Manager
5 Use the bitnami chart to install Postgres. Read the output to understand how to connect to the database.
8 helm install postgres oci://registry-1.docker.io/bitnamicharts/postgresql -n db --create-namespace
11 Once connected, create a postgres user and database:
14 CREATE USER kong WITH PASSWORD 'super_secret'; CREATE DATABASE kong OWNER kong;
19 Install Cert Manager in to your cluster:
22 kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml
24 cert-manager jetstack/cert-manager \
25 --namespace cert-manager \
30 Create a self signed CA + Issuer for future use:
39 apiVersion: cert-manager.io/v1
42 name: selfsigned-issuer
46 apiVersion: cert-manager.io/v1
49 name: my-selfsigned-ca
53 commonName: my-selfsigned-ca
54 secretName: root-secret
59 name: selfsigned-issuer
61 group: cert-manager.io
63 apiVersion: cert-manager.io/v1
70 secretName: root-secret
71 " | kubectl apply -f -
76 Deploy Kong using the `cp-values.yaml` and `dp-values.yaml` in this folder:
79 helm install kong-cp kong/kong -n kong --values cp-values.yaml
80 helm install kong-dp kong/kong -n kong --values dp-values.yaml
83 You should now have Kong running in hybrid mode