I want to setup an ssl certificate for my kong ingress controller & for that, I guess I need to make changes to kong.conf
file.
Can anyone tell me where should I look for the kong.conf
file in my cluster
and how to make necessary changes to enable ssl for ingress controller?
hbagdi
February 22, 2019, 11:58pm
2
To remove any ambiguity, could you confirm if you are trying to enable SSL on the Admin API of Kong?
If yes, it will be done so using environment variables for the pod.
Please take a look at our Helm chart for reference:
secretKeyRef:
name: {{ template "kong.postgresql.fullname" . }}
key: postgresql-password
{{- end }}
{{- if .Values.cassandra.enabled }}
- name: KONG_CASSANDRA_CONTACT_POINTS
value: {{ template "kong.cassandra.fullname" . }}
{{- end }}
command: [ "/bin/sh", "-c", "until kong start; do echo 'waiting for db'; sleep 1; done; kong stop" ]
containers:
- name: admin-api
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: KONG_PROXY_LISTEN
value: 'off'
- name: KONG_ADMIN_ACCESS_LOG
value: "/dev/stdout"
- name: KONG_ADMIN_ERROR_LOG
value: "/dev/stderr"
{{- range $key, $val := .Values.env }}