Update Kong ingress controller to version 1.4. It fixes the occasional 404 error.
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / config-custom-server-blocks.yaml
1 apiVersion: v1
2 kind: ConfigMap
3 metadata:
4   name: {{ template "kong.fullname" . }}-default-custom-server-blocks
5   labels:
6     {{- include "kong.metaLabels" . | nindent 4 }}
7 data:
8   servers.conf: |
9     # Prometheus metrics and health-checking server
10     server {
11         server_name kong_prometheus_exporter;
12         listen 0.0.0.0:9542; # can be any other port as well
13         access_log off;
14         location /status {
15             default_type text/plain;
16             return 200;
17         }
18         location /metrics {
19             default_type text/plain;
20             content_by_lua_block {
21                  local prometheus = require "kong.plugins.prometheus.exporter"
22                  prometheus:collect()
23             }
24         }
25         location /nginx_status {
26             internal;
27             access_log off;
28             stub_status;
29         }
30     }