Hi,
I was using Kong gateway in kubernetes with database so far and had two certificates. This is working great. At the moment I am trying to setup DB-less kong but I am not able to do the same thing.
I created configMap with config:
apiVersion: v1
data:
kong.yml: |
_format_version: "3.0"
certificates:
- id: "0d4c1a06-d12d-4d42-9776-059fba3b8fdc"
cert: "/etc/secrets/cert-test-com/tls.crt"
key: "/etc/secrets/cert-test-com/tls.key"
snis:
- connect.test.com
- id: "c84cab47-a60f-4baf-882f-8ce6a4110803"
cert: "/etc/secrets/cert-a1-test-com/tls.crt"
key: "/etc/secrets/cert-a1-test-com/tls.key"
snis:
- connect.a1.test.com
kind: ConfigMap
metadata:
name: kong-config
namespace: kong
in values.yaml i added:
dblessConfig:
configMap: kong-config
Configmap is created just fine but it seems like config is not used at all. Is this a correct way to do this or should i do it differently to acheive this? I also tried:
dblessConfig
config: |
_format_version: "1.1"
certificates:
- snis:
- name: connect.test.com
cert: |-
-----BEGIN CERTIFICATE-----
.....
-----END CERTIFICATE-----
key: |-
-----BEGIN RSA PRIVATE KEY-----
.....
-----END RSA PRIVATE KEY-----
but had the same result.