This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/kong] add nginx custom template feature via config map (#15079)
* [stable/kong] added custom nginx template injection capability via config map Signed-off-by: Amath Sarr <[email protected]> * [stable/kong] bump version Signed-off-by: Amath Sarr <[email protected]> * [stable/kong] added missing space in comment Signed-off-by: Amath Sarr <[email protected]> * [stable/kong] bump app version to 0.14.0 Signed-off-by: Amath Sarr <[email protected]> * [stable/kong] removed configurable configmap and extra pod ports not necessary anymore Signed-off-by: Amath Sarr <[email protected]> * [stable/kong] remove metrics for controller cause it's hardly used and expose metric port in other kong pods Signed-off-by: Amath Sarr <[email protected]>
- Loading branch information
1 parent
9bf18f5
commit 9799f20
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: kong-default-custom-server-blocks | ||
labels: | ||
app: {{ template "kong.name" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
data: | ||
servers.conf: | | ||
# Prometheus metrics server | ||
server { | ||
server_name kong_prometheus_exporter; | ||
listen 0.0.0.0:9542; # can be any other port as well | ||
access_log off; | ||
location /metrics { | ||
default_type text/plain; | ||
content_by_lua_block { | ||
local prometheus = require "kong.plugins.prometheus.exporter" | ||
prometheus:collect() | ||
} | ||
} | ||
location /nginx_status { | ||
internal; | ||
access_log off; | ||
stub_status; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters