-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding ServiceMonitor yaml files, modify containerPort in clients deploymants * Versioning * fix indentation * edit service monitor * fix template * fix whitespace --------- Co-authored-by: Mahsa <[email protected]>
- Loading branch information
1 parent
589de48
commit 69ad44a
Showing
8 changed files
with
54 additions
and
12 deletions.
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
26 changes: 23 additions & 3 deletions
26
clients/harbor-client/charts/templates/servicemonitor.yaml
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 |
---|---|---|
@@ -1,13 +1,33 @@ | ||
{{- if .Values.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "snappcloud-harbor-client.fullname" . }} | ||
labels: | ||
{{- include "snappcloud-harbor-client.labels" . | nindent 4 }} | ||
{{- if .Values.commonLabels }} | ||
{{- include "snappcloud-harbor-client.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- port: http | ||
interval: 30s | ||
{{- if .Values.serviceMonitor.scrapeTimeout }} | ||
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} | ||
{{- end }} | ||
path: /metrics | ||
honorLabels: {{ .Values.serviceMonitor.honorLabels }} | ||
{{- if .Values.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: | ||
{{- tpl (toYaml .Values.serviceMonitor.metricRelabelings | nindent 4) . }} | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{ toYaml .Values.serviceMonitor.relabelings | nindent 4 }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 6 }} | ||
{{- 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
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
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 |
---|---|---|
@@ -1,13 +1,33 @@ | ||
{{- if .Values.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "snappcloud-proxy-client.fullname" . }} | ||
labels: | ||
{{- include "snappcloud-proxy-client.labels" . | nindent 4 }} | ||
{{- if .Values.commonLabels }} | ||
{{- include "snappcloud-proxy-client.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- port: http | ||
interval: 30s | ||
{{- if .Values.serviceMonitor.scrapeTimeout }} | ||
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} | ||
{{- end }} | ||
path: /metrics | ||
honorLabels: {{ .Values.serviceMonitor.honorLabels }} | ||
{{- if .Values.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: | ||
{{- tpl (toYaml .Values.serviceMonitor.metricRelabelings | nindent 4) . }} | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{ toYaml .Values.serviceMonitor.relabelings | nindent 4 }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 6 }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ podLabels: { } | |
|
||
service: | ||
type: ClusterIP | ||
port: 8080 | ||
port: 9090 | ||
|
||
resources: | ||
limits: | ||
|