Skip to content

Commit

Permalink
Allow to override AlertManager's target port (helm#21251)
Browse files Browse the repository at this point in the history
Signed-off-by: Mickaël Canévet <mickael.canevet@gmail.com>
  • Loading branch information
mcanevet authored and Mats Faugli committed Mar 20, 2020
1 parent 354bfcf commit 8dc188a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.11.2
version: 8.12.0
appVersion: 0.37.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
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 @@ -398,6 +398,7 @@ The following tables list the configurable parameters of the prometheus-operator
| `alertmanager.service.loadBalancerSourceRanges` | Alertmanager Load Balancer Source Ranges | `[]` |
| `alertmanager.service.nodePort` | Alertmanager Service port for NodePort service type | `30903` |
| `alertmanager.service.port` | Port for Alertmanager Service to listen on | `9093` |
| `alertmanager.service.targetPort` | AlertManager Service internal port | `9093` |
| `alertmanager.service.type` | Alertmanager Service type | `ClusterIP` |
| `alertmanager.serviceAccount.create` | Create a `serviceAccount` for alertmanager | `true` |
| `alertmanager.serviceAccount.name` | Name for Alertmanager service account | `""` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
nodePort: {{ .Values.alertmanager.service.nodePort }}
{{- end }}
port: {{ .Values.alertmanager.service.port }}
targetPort: 9093
targetPort: {{ .Values.alertmanager.service.targetPort }}
protocol: TCP
selector:
app: alertmanager
Expand Down
3 changes: 3 additions & 0 deletions stable/prometheus-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ alertmanager:
## Port for Alertmanager Service to listen on
##
port: 9093
## To be used with a proxy extraContainer port
##
targetPort: 9093
## Port to expose on each node
## Only used if service.type is 'NodePort'
##
Expand Down

0 comments on commit 8dc188a

Please sign in to comment.