generated from iits-consulting/helm-chart-repo-gh-pages-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make prometheus-stack easier to use * Auto update of README.md files --------- Co-authored-by: Victor Getz <sd> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3962566
commit bc032c6
Showing
14 changed files
with
264 additions
and
98 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
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
58 changes: 58 additions & 0 deletions
58
charts/prometheus-stack/templates/ingress/alertmanager.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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{{- with .Values.prometheusStack.ingress.alertmanager}} | ||
{{- if .enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{$.Release.Name}}-alertmanager | ||
{{- with .labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .annotations }} | ||
annotations: | ||
{{- tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ingressClassName: {{ .className | default "traefik" }} | ||
{{- if .tls }} | ||
tls: | ||
{{- range .tls }} | ||
{{- $certSecretName := .secretName | default (printf "%s-%s" $.Release.Name "cert")}} | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- hosts: | ||
- {{ tpl (toYaml .) $ }} | ||
secretName: {{ $certSecretName }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: {{ .pathType | default "Prefix"}} | ||
backend: | ||
service: | ||
name: {{$.Release.Name}} | ||
port: | ||
number: {{ $.Values.prometheusStack.alertmanager.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
- path: "/alertmanager" | ||
pathType: "Prefix" | ||
backend: | ||
service: | ||
name: {{$.Release.Name}}-alertmanager | ||
port: | ||
number: {{ $.Values.prometheusStack.alertmanager.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{{- with .Values.prometheusStack.ingress.grafana}} | ||
{{- if .enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{$.Release.Name}}-grafana | ||
{{- with .labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .annotations }} | ||
annotations: | ||
{{- tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ingressClassName: {{ .className | default "traefik" }} | ||
{{- if .tls }} | ||
tls: | ||
{{- range .tls }} | ||
{{- $certSecretName := .secretName | default (printf "%s-%s" $.Release.Name "cert")}} | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- hosts: | ||
- {{ tpl (toYaml .) $ }} | ||
secretName: {{ $certSecretName }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: {{ .pathType | default "Prefix"}} | ||
backend: | ||
service: | ||
name: {{$.Release.Name}} | ||
port: | ||
number: {{ $.Values.prometheusStack.grafana.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
- path: "/grafana" | ||
pathType: "Prefix" | ||
backend: | ||
service: | ||
name: {{$.Release.Name}}-grafana | ||
port: | ||
number: {{ $.Values.prometheusStack.grafana.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
4 changes: 3 additions & 1 deletion
4
...mplates/route/middleware-stripprefix.yaml → ...lates/ingress/middleware-stripprefix.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,8 +1,10 @@ | ||
{{- if eq .Values.prometheusStack.ingress.grafana.className "traefik" }} | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: strip-prefix-{{ .Release.Name }} | ||
spec: | ||
stripPrefix: | ||
prefixes: | ||
- "/grafana" | ||
- "/grafana" | ||
{{- 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{{- with .Values.prometheusStack.ingress.prometheus}} | ||
{{- if .enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{$.Release.Name}}-prometheus | ||
{{- with .labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .annotations }} | ||
annotations: | ||
{{- tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ingressClassName: {{ .className | default "traefik" }} | ||
{{- if .tls }} | ||
tls: | ||
{{- range .tls }} | ||
{{- $certSecretName := .secretName | default (printf "%s-%s" $.Release.Name "cert")}} | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- hosts: | ||
- {{ tpl (toYaml .) $ }} | ||
secretName: {{ $certSecretName }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- if .hosts }} | ||
{{- range .hosts }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: {{ .pathType | default "Prefix"}} | ||
backend: | ||
service: | ||
name: {{$.Release.Name}} | ||
port: | ||
number: {{ $.Values.prometheusStack.prometheus.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else }} | ||
- host: {{ tpl (toYaml .host) $ }} | ||
http: | ||
paths: | ||
- path: "/prometheus" | ||
pathType: "Prefix" | ||
backend: | ||
service: | ||
name: {{$.Release.Name}}-prometheus | ||
port: | ||
number: {{ $.Values.prometheusStack.prometheus.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
21 changes: 0 additions & 21 deletions
21
charts/prometheus-stack/templates/route/route-alertmanager.yaml
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
charts/prometheus-stack/templates/route/route-grafana.yaml
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
charts/prometheus-stack/templates/route/route-prometheus.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.