Skip to content

Commit

Permalink
simplify ports
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jan 8, 2025
1 parent 44ebc23 commit 921dd14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions chart/templates/backend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,4 @@ spec:
ports:
- port: {{ .Values.apiserver.service.port }}
targetPort: api
{{- if ((.Values.apiserver).serviceMonitor).create }}
- port: 8080
targetPort: api
protocol: TCP
name: metrics
{{- end }}
selector: {{- include "backend.labels.matchLabels" . | nindent 4 }}
2 changes: 1 addition & 1 deletion chart/templates/backend/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
endpoints:
- interval: 30s
port: metrics
port: api
scheme: http
path: /metrics
namespaceSelector:
Expand Down

0 comments on commit 921dd14

Please sign in to comment.