This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/kiam] Adding Prometheus metrics service endpoints (#7762)
* Prometheus endpoints in agent/server services Signed-off-by: Scott Crooks <scott.crooks@gmail.com> * Dots and 'and' condition for agent service Signed-off-by: Scott Crooks <scott.crooks@gmail.com> * Bumping version to 1.3.0 Signed-off-by: Scott Crooks <scott.crooks@gmail.com> * Changing agent service template to match other templates Signed-off-by: Scott Crooks <scott.crooks@gmail.com>
- Loading branch information
1 parent
39435d0
commit ab0ed34
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{- if .Values.agent.enabled -}} | ||
{{- if .Values.agent.prometheus.scrape -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: {{ template "kiam.name" . }} | ||
chart: {{ template "kiam.chart" . }} | ||
component: "{{ .Values.agent.name }}" | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
name: {{ template "kiam.fullname" . }}-agent | ||
spec: | ||
clusterIP: None | ||
selector: | ||
app: {{ template "kiam.name" . }} | ||
component: "{{ .Values.agent.name }}" | ||
release: {{ .Release.Name }} | ||
ports: | ||
- name: metrics | ||
port: {{ .Values.agent.prometheus.port }} | ||
targetPort: {{ .Values.agent.prometheus.port }} | ||
protocol: TCP | ||
{{- end -}} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters