This is an automated email from the ASF dual-hosted git repository.

zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new c46b53e  fix: add prometheus port for apisix-gateway (#478)
c46b53e is described below

commit c46b53e73aba79e42483b232486c9a34e9b04bba
Author: Sarasa Kisaragi <[email protected]>
AuthorDate: Thu Feb 23 17:45:58 2023 +0800

    fix: add prometheus port for apisix-gateway (#478)
---
 charts/apisix/templates/service-gateway.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/charts/apisix/templates/service-gateway.yaml 
b/charts/apisix/templates/service-gateway.yaml
index 794c718..5a8380a 100644
--- a/charts/apisix/templates/service-gateway.yaml
+++ b/charts/apisix/templates/service-gateway.yaml
@@ -66,6 +66,12 @@ spec:
   {{- end }}
     protocol: TCP
   {{- end }}
+  {{- if .Values.serviceMonitor.enabled }}
+  - name: prometheus
+    port: {{ .Values.serviceMonitor.containerPort }}
+    targetPort: {{ .Values.serviceMonitor.containerPort }}
+    protocol: TCP
+  {{- end }}
   {{- if and .Values.gateway.stream.enabled (or (gt (len 
.Values.gateway.stream.tcp) 0) (gt (len .Values.gateway.stream.udp) 0)) }}
   {{- with .Values.gateway.stream }}
   {{- if (gt (len .tcp) 0) }}

Reply via email to