Skip to content

Commit

Permalink
Servicemonitor (#9)
Browse files Browse the repository at this point in the history
* Adding ServiceMonitor yaml files,
modify containerPort in clients deploymants

---------
Co-authored-by: Mahsa <[email protected]>
  • Loading branch information
divergentluna authored Feb 27, 2024
1 parent a78d45a commit 4cd291b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clients/harbor-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-harbor-client
description: A Helm chart for snappcloud-harbor-client

type: application
version: 0.1.1
appVersion: "0.0.2"
version: 0.1.2
appVersion: "0.0.3"
2 changes: 1 addition & 1 deletion clients/harbor-client/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
env:
- name: IMAGE_REFERENCE
Expand Down
13 changes: 13 additions & 0 deletions clients/harbor-client/charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "snappcloud-harbor-client.fullname" . }}
labels:
{{- include "snappcloud-harbor-client.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 4 }}
endpoints:
- port: http
interval: 30s
4 changes: 2 additions & 2 deletions clients/proxy-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-proxy-client
description: A Helm chart for snappcloud-proxy-client

type: application
version: 0.1.1
appVersion: "0.0.2"
version: 0.1.2
appVersion: "0.0.3"
2 changes: 1 addition & 1 deletion clients/proxy-client/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
env:
- name: PROXY_URL
Expand Down
13 changes: 13 additions & 0 deletions clients/proxy-client/charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "snappcloud-proxy-client.fullname" . }}
labels:
{{- include "snappcloud-proxy-client.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 4 }}
endpoints:
- port: http
interval: 30s

0 comments on commit 4cd291b

Please sign in to comment.