Skip to content

Commit

Permalink
added additional ports option for prometheus-operator prometheus serv…
Browse files Browse the repository at this point in the history
…ice (helm#11506)

* added additional ports option for prometheus-operator prometheus service

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>

* updated version, readme, fixed data type, added ci values

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>

* trailing spaces

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>

* bumped version to 2.2.7

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>

* bumped version to 3.0.1

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>

* fixed merge conflict with appVersion

Signed-off-by: GIBSON, NICHOLAS R <[email protected]>
  • Loading branch information
nicholasgibson2 authored and k8s-ci-robot committed Feb 28, 2019
1 parent 6a78c5a commit 40aee78
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: prometheus-operator
sources:
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 4.2.0
version: 4.2.1
appVersion: 0.29.0
home: https://github.com/coreos/prometheus-operator
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/prometheus-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ The following tables lists the configurable parameters of the prometheus-operato
| `prometheus.service.clusterIP` | Prometheus service clusterIP IP | `""` |
| `prometheus.service.targetPort` | Prometheus Service internal port | `9090` |
| `prometheus.service.nodePort` | Prometheus Service port for NodePort service type | `39090` |
| `prometheus.service.additionalPorts` | Additional Prometheus Service ports to add for NodePort service type | `[]` |
| `prometheus.service.annotations` | Prometheus Service Annotations | `{}` |
| `prometheus.service.labels` | Prometheus Service Labels | `{}` |
| `prometheus.service.externalIPs` | List of IP addresses at which the Prometheus server service is available | `[]` |
Expand Down
8 changes: 8 additions & 0 deletions stable/prometheus-operator/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,14 @@ prometheus:
##
nodePort: 39090

## Additional ports to open for Prometheus service
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
##
additionalPorts: []
# - name: thanos-cluster
# port: 10900
# nodePort: 30111

## Loadbalancer IP
## Only use if service.type is "loadbalancer"
loadBalancerIP: ""
Expand Down
3 changes: 3 additions & 0 deletions stable/prometheus-operator/templates/prometheus/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- end }}
port: 9090
targetPort: {{ .Values.prometheus.service.targetPort }}
{{- if .Values.prometheus.service.additionalPorts }}
{{ toYaml .Values.prometheus.service.additionalPorts | indent 2 }}
{{- end }}
selector:
app: prometheus
prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
Expand Down
7 changes: 7 additions & 0 deletions stable/prometheus-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,13 @@ prometheusOperator:
##
nodePort: 38080

## Additional ports to open for Prometheus service
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
##
additionalPorts: []
# - name: thanos-cluster
# port: 10900
# nodePort: 30111

## Loadbalancer IP
## Only use if service.type is "loadbalancer"
Expand Down

0 comments on commit 40aee78

Please sign in to comment.