added additional labels to servicemonitor template (#132)

chart: Add additional labels to servicemonitor template

Co-authored-by: Hendrik Ferber <HFerber@anexia-it.com>
This commit is contained in:
Hendrik Ferber
2021-05-06 16:39:41 +03:00
committed by GitHub
co-authored by Hendrik Ferber
parent 21c8dfbb69
commit 9c4df129c6
4 changed files with 8 additions and 2 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
# Podinfo
Podinfo is a tiny web application made with Go
Podinfo is a tiny web application made with Go
that showcases best practices of running microservices in Kubernetes.
Podinfo is used by CNCF projects like [Flux](https://github.com/fluxcd/flux2)
@@ -14,7 +14,7 @@ To install the chart with the release name `my-release`:
```console
$ helm repo add podinfo https://stefanprodan.github.io/podinfo
$ helm upgrade -i my-release podinfo/podinfo
$ helm upgrade -i my-release podinfo/podinfo
```
The command deploys podinfo on the Kubernetes cluster in the default namespace.
@@ -74,6 +74,7 @@ Parameter | Default | Description
`linkerd.profile.enabled` | `false` | Create Linkerd service profile
`serviceMonitor.enabled` | `false` | Whether a Prometheus Operator service monitor should be created
`serviceMonitor.interval` | `15s` | Prometheus scraping interval
`serviceMonitor.additionalLabels` | `{}` | Add additional labels to the service monitor |
`ingress.enabled` | `false` | Enables Ingress
`ingress.annotations` | `{}` | Ingress annotations
`ingress.path` | `/*` | Ingress path
@@ -5,6 +5,9 @@ metadata:
name: {{ template "podinfo.fullname" . }}
labels:
{{- include "podinfo.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- path: /metrics
+1
View File
@@ -116,6 +116,7 @@ linkerd:
serviceMonitor:
enabled: false
interval: 15s
additionalLabels: {}
resources:
limits:
+1
View File
@@ -120,6 +120,7 @@ linkerd:
serviceMonitor:
enabled: false
interval: 15s
additionalLabels: {}
resources:
limits: