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 3bcc96e  feat(apisix): add service label (#196)
3bcc96e is described below

commit 3bcc96e8c40db88ccae0ba0266fb3a9e622448ee
Author: Gallardot <ttt...@163.com>
AuthorDate: Thu Dec 30 09:09:08 2021 +0800

    feat(apisix): add service label (#196)
---
 charts/apisix/templates/service-admin.yaml   | 1 +
 charts/apisix/templates/service-gateway.yaml | 1 +
 charts/apisix/templates/servicemonitor.yaml  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/charts/apisix/templates/service-admin.yaml 
b/charts/apisix/templates/service-admin.yaml
index 809260f..4a033d2 100644
--- a/charts/apisix/templates/service-admin.yaml
+++ b/charts/apisix/templates/service-admin.yaml
@@ -25,6 +25,7 @@ metadata:
     {{- end }}
   labels:
     {{- include "apisix.labels" . | nindent 4 }}
+    app.kubernetes.io/service: apisix-admin
 spec:
   type: {{ .Values.admin.type }}
   {{- if eq .Values.admin.type "LoadBalancer" }}
diff --git a/charts/apisix/templates/service-gateway.yaml 
b/charts/apisix/templates/service-gateway.yaml
index 3a1d4c2..1361872 100644
--- a/charts/apisix/templates/service-gateway.yaml
+++ b/charts/apisix/templates/service-gateway.yaml
@@ -26,6 +26,7 @@ metadata:
     {{- end }}
   labels:
     {{- include "apisix.labels" . | nindent 4 }}
+    app.kubernetes.io/service: apisix-gateway
 spec:
   type: {{ .Values.gateway.type }}
   externalTrafficPolicy: {{ .Values.gateway.externalTrafficPolicy }}
diff --git a/charts/apisix/templates/servicemonitor.yaml 
b/charts/apisix/templates/servicemonitor.yaml
index 7fb1d29..5abc891 100644
--- a/charts/apisix/templates/servicemonitor.yaml
+++ b/charts/apisix/templates/servicemonitor.yaml
@@ -35,6 +35,7 @@ spec:
   selector:
     matchLabels:
       {{- include "apisix.labels" . | nindent 6 }}
+      app.kubernetes.io/service: apisix-gateway
   endpoints:
   - scheme: http
     targetPort: prometheus

Reply via email to