Extend K8S and RIC installation instructions
[it/dep.git] / ric-infra / 30-Kong / helm / kong / charts / 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     app: {{ template "kong.name" . }}
7     chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
8     release: "{{ .Release.Name }}"
9     heritage: "{{ .Release.Service }}"
10 data:
11   servers.conf: |
12     # Prometheus metrics server
13     server {
14         server_name kong_prometheus_exporter;
15         listen 0.0.0.0:9542; # can be any other port as well
16         access_log off;
17         location /metrics {
18             default_type text/plain;
19             content_by_lua_block {
20                  local prometheus = require "kong.plugins.prometheus.exporter"
21                  prometheus:collect()
22             }
23         }
24         location /nginx_status {
25             internal;
26             access_log off;
27             stub_status;
28         }
29     }