Skip to content

Commit

Permalink
Expose the controller metrics port on the metrics service (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhyllander authored and jcmoraisjr committed Feb 23, 2021
1 parent 8a9da5f commit 1e5ad52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions haproxy-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Parameter | Description | Default
`controller.metrics.service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""`
`controller.metrics.service.loadBalancerSourceRanges` | | `[]`
`controller.metrics.service.servicePort` | the port number exposed by the metrics service | `9101`
`controller.metrics.service.serviceControllerPort` | the controller port number exposed by the metrics service | `10254`
`controller.metrics.service.type` | type of controller service to create | `ClusterIP`
`controller.logs.enabled` | enable an access-logs sidecar container that collects access logs from haproxy and outputs to stdout | `false`
`controller.logs.image.repository` | access-logs container image repository | `whereisaaron/kube-syslog-sidecar`
Expand Down
3 changes: 3 additions & 0 deletions haproxy-ingress/templates/controller-metrics-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
- name: metrics
port: {{ .Values.controller.metrics.service.servicePort }}
targetPort: metrics
- name: ctrl-metrics
port: {{ .Values.controller.metrics.service.serviceControllerPort }}
targetPort: ctrl-metrics
selector:
{{- include "haproxy-ingress.selectorLabels" . | nindent 4 }}
type: "{{ .Values.controller.metrics.service.type }}"
Expand Down
1 change: 1 addition & 0 deletions haproxy-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ controller:
loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 9101
serviceControllerPort: 10254
type: ClusterIP

## access-logs side-car container for collecting haproxy logs
Expand Down

0 comments on commit 1e5ad52

Please sign in to comment.