Skip to content

Commit

Permalink
feat(apisix): add service label (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallardot authored Dec 30, 2021
1 parent 006c1a1 commit 3bcc96e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/apisix/templates/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down
1 change: 1 addition & 0 deletions charts/apisix/templates/service-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/apisix/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
selector:
matchLabels:
{{- include "apisix.labels" . | nindent 6 }}
app.kubernetes.io/service: apisix-gateway
endpoints:
- scheme: http
targetPort: prometheus
Expand Down

0 comments on commit 3bcc96e

Please sign in to comment.