Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
feature(prometheus): allow path element in ingress values (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoesler authored and k8s-ci-robot committed Feb 20, 2018
1 parent b3a825a commit f9cad1d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: prometheus
version: 5.2.1
version: 5.3.0
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
Expand Down
6 changes: 4 additions & 2 deletions stable/prometheus/templates/alertmanager-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ metadata:
spec:
rules:
{{- range .Values.alertmanager.ingress.hosts }}
- host: {{ . }}
{{- $url := splitList "/" . }}
- host: {{ first $url }}
http:
paths:
- backend:
- path: /{{ rest $url | join "/" }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}
Expand Down
6 changes: 4 additions & 2 deletions stable/prometheus/templates/pushgateway-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ metadata:
spec:
rules:
{{- range .Values.pushgateway.ingress.hosts }}
- host: {{ . }}
{{- $url := splitList "/" . }}
- host: {{ first $url }}
http:
paths:
- backend:
- path: /{{ rest $url | join "/" }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}
Expand Down
6 changes: 4 additions & 2 deletions stable/prometheus/templates/server-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ metadata:
spec:
rules:
{{- range .Values.server.ingress.hosts }}
- host: {{ . }}
{{- $url := splitList "/" . }}
- host: {{ first $url }}
http:
paths:
- backend:
- path: /{{ rest $url | join "/" }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}
Expand Down
9 changes: 6 additions & 3 deletions stable/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ alertmanager:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: 'true'

## alertmanager Ingress hostnames
## alertmanager Ingress hostnames with optinal path
## Must be provided if Ingress is enabled
##
hosts: []
# - alertmanager.domain.com
# - domain.com/alertmanager

## alertmanager Ingress TLS configuration
## Secrets must be manually created in the namespace
Expand Down Expand Up @@ -424,11 +425,12 @@ server:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: 'true'

## Prometheus server Ingress hostnames
## Prometheus server Ingress hostnames with optinal path
## Must be provided if Ingress is enabled
##
hosts: []
# - prometheus.domain.com
# - domain.com/prometheus

## Prometheus server Ingress TLS configuration
## Secrets must be manually created in the namespace
Expand Down Expand Up @@ -572,11 +574,12 @@ pushgateway:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: 'true'

## pushgateway Ingress hostnames
## pushgateway Ingress hostnames with optinal path
## Must be provided if Ingress is enabled
##
hosts: []
# - pushgateway.domain.com
# - domain.com/pushgateway

## pushgateway Ingress TLS configuration
## Secrets must be manually created in the namespace
Expand Down

0 comments on commit f9cad1d

Please sign in to comment.