Skip to content

Commit

Permalink
feat(fastapi): Do not install service monitor as default option
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikOssipoff committed Jan 9, 2025
1 parent 69b6e50 commit fb51f14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/fastapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: fastapi
description: A simple Coolshop Helm chart for deploying FastAPI applications in Kubernetes
type: application
version: 1.1.4
version: 1.1.5
appVersion: latest
icon: https://static.coolshop-cdn.com/images/favicons/coolshop/favicon-256.png
maintainers:
Expand Down
2 changes: 2 additions & 0 deletions charts/fastapi/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.serviceMonitor.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand All @@ -17,3 +18,4 @@ spec:
path: /metrics
port: http
scheme: http
{{- end }}
3 changes: 3 additions & 0 deletions charts/fastapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ service:
type: ClusterIP
port: 8000

serviceMonitor:
enabled: false

ingress:
enabled: true
className: "haproxy-public"
Expand Down

0 comments on commit fb51f14

Please sign in to comment.