Skip to content

Commit

Permalink
* added servicemonitor only including 1 service
Browse files Browse the repository at this point in the history
* addded service-name labels to default services
  • Loading branch information
AronKa-SAG committed Jun 6, 2024
1 parent 65796f8 commit 9f2697c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apigateway/helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ metadata:
{{- with .Values.extraLabels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
service-name: {{ include "common.names.fullname" . }}-rt
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -48,6 +49,7 @@ metadata:
{{- with .Values.extraLabels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
service-name: {{ include "common.names.fullname" . }}-admin
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -70,6 +72,7 @@ metadata:
{{- with .Values.extraLabels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
service-name: {{ include "common.names.fullname" . }}-ui
spec:
type: {{ .Values.service.type }}
sessionAffinity: ClientIP
Expand Down
2 changes: 1 addition & 1 deletion apigateway/helm/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ spec:
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
name: {{ include "apigateway.monitorServiceName" . }}
service-name: {{ include "apigateway.monitorServiceName" . }}
{{- end }}

0 comments on commit 9f2697c

Please sign in to comment.