diff --git a/charts/fastapi/Chart.yaml b/charts/fastapi/Chart.yaml index 5e55aa1..df5a4a0 100644 --- a/charts/fastapi/Chart.yaml +++ b/charts/fastapi/Chart.yaml @@ -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: diff --git a/charts/fastapi/templates/servicemonitor.yaml b/charts/fastapi/templates/servicemonitor.yaml index b7d7b1a..ea0d368 100644 --- a/charts/fastapi/templates/servicemonitor.yaml +++ b/charts/fastapi/templates/servicemonitor.yaml @@ -1,3 +1,4 @@ +{{- if .Values.serviceMonitor.enabled -}} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: @@ -17,3 +18,4 @@ spec: path: /metrics port: http scheme: http +{{- end }} diff --git a/charts/fastapi/values.yaml b/charts/fastapi/values.yaml index 0b93124..c4069cd 100644 --- a/charts/fastapi/values.yaml +++ b/charts/fastapi/values.yaml @@ -64,6 +64,9 @@ service: type: ClusterIP port: 8000 +serviceMonitor: + enabled: false + ingress: enabled: true className: "haproxy-public"