diff --git a/haproxy-ingress/README.md b/haproxy-ingress/README.md index 442f636..db22a41 100644 --- a/haproxy-ingress/README.md +++ b/haproxy-ingress/README.md @@ -172,6 +172,7 @@ Parameter | Description | Default `controller.daemonset.hostPorts.http` | If `controller.daemonset.useHostPort` is `true` and this is non-empty sets the hostPort for http | `"80"` `controller.daemonset.hostPorts.https` | If `controller.daemonset.useHostPort` is `true` and this is non-empty sets the hostPort for https | `"443"` `controller.daemonset.hostPorts.tcp` | If `controller.daemonset.useHostPort` is `true` use hostport for these ports from `tcp` | `[]` +`controller.daemonset.extraHostPorts` | If `controller.daemonset.useHostPort` is `true` configure additional host ports mapping. Each entry should specify `port`, `containerPort`, and `hostPort` | `[]` `controller.updateStrategy` | the update strategy settings | _see defaults below_ `controller.updateStrategy.type` | the update strategy type to use | `RollingUpdate` `controller.updateStrategy.rollingUpdate.maxUnavailable` | the max number of unavailable controllers when doing rolling updates | `1` diff --git a/haproxy-ingress/templates/_podtemplate.yaml b/haproxy-ingress/templates/_podtemplate.yaml index dba5121..b836ed3 100644 --- a/haproxy-ingress/templates/_podtemplate.yaml +++ b/haproxy-ingress/templates/_podtemplate.yaml @@ -362,6 +362,17 @@ spec: {{- end }} {{- end }} {{- end }} + +{{- if eq $.Values.controller.kind "DaemonSet" }} +{{- if $.Values.controller.daemonset.useHostPort }} +{{- range $row := .Values.controller.daemonset.extraHostPorts }} +- name: "extra-port-{{ $row.port }}" + containerPort: {{ $row.containerPort }} + protocol: TCP + hostPort: {{ $row.hostPort }} +{{- end }} +{{- end }} +{{- end }} {{- end }} {{- define "haproxy-ingress.controller.probes" }}