[incubator/haproxy-proxy] Add parameter for controller service targetPort so they can be overwritten (#18468)

Signed-off-by: kalilou <kalilou1988@gmail.com>
This commit is contained in:
Kalilou Diaby
2019-11-03 18:11:40 -08:00
committed by Kubernetes Prow Robot
parent dd935b36e0
commit 0bb2e64f12
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: haproxy-ingress
version: 0.0.19
version: 0.0.20
appVersion: 0.7.2
home: https://github.com/jcmoraisjr/haproxy-ingress
description: Ingress controller implementation for haproxy loadbalancer.
+2 -2
View File
@@ -103,8 +103,8 @@ Parameter | Description | Default
`controller.service.externalIPs` | list of IP addresses at which the controller services are available | `[]`
`controller.service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""`
`controller.service.loadBalancerSourceRanges` | | `[]`
`controller.service.httpPorts` | The http ports to open, that map to the Ingress' port 80. Each entry specifies a `port` and an optional `nodePort`. | `[ port: 80 ]`
`controller.service.httpsPorts` | The https ports to open, that map to the Ingress' port 443. Each entry specifies a `port` and an optional `nodePort`. | `[ port: 443 ]`
`controller.service.httpPorts` | The http ports to open, that map to the Ingress' port 80. Each entry specifies a `port`, `targetPort` and an optional `nodePort`. | `[ port: 80, targetPort: http ]`
`controller.service.httpsPorts` | The https ports to open, that map to the Ingress' port 443. Each entry specifies a `port`, `targetPort` and an optional `nodePort`. | `[ port: 443 , targetPort: https]`
`controller.service.type` | type of controller service to create | `LoadBalancer`
`controller.stats.enabled` | whether to enable exporting stats | `false`
`controller.stats.port` | The port number used haproxy-ingress-controller for haproxy statistics | `1936`
@@ -43,7 +43,7 @@ spec:
- name: "{{ .port }}-http"
port: {{ .port }}
protocol: TCP
targetPort: http
targetPort: {{ .targetPort }}
{{- if (not (empty .nodePort)) }}
nodePort: {{ .nodePort }}
{{- end }}
@@ -52,7 +52,7 @@ spec:
- name: "{{ .port }}-https"
port: {{ .port }}
protocol: TCP
targetPort: https
targetPort: {{ .targetPort }}
{{- if (not (empty .nodePort)) }}
nodePort: {{ .nodePort }}
{{- end }}
+2
View File
@@ -198,9 +198,11 @@ controller:
httpPorts:
- port: 80
targetPort: http
# nodePort:
httpsPorts:
- port: 443
targetPort: https
# nodePort:
## Set external traffic policy to: "Local" to preserve source IP on