Skip to content

Commit

Permalink
[bitnami/haproxy] Add externalIPs (bitnami#25564) (bitnami#25565)
Browse files Browse the repository at this point in the history
* [bitnami/haproxy] Add externalIPs (bitnami#25564)

Signed-off-by: Olivier Boudet <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

* Update bitnami/haproxy/Chart.yaml

Signed-off-by: Juan José Martos <[email protected]>

---------

Signed-off-by: Olivier Boudet <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Juan José Martos <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
Co-authored-by: Juan José Martos <[email protected]>
Signed-off-by: Matheus Gonçalves <[email protected]>
  • Loading branch information
3 people authored and matheusmgon committed May 8, 2024
1 parent ba780b1 commit f5ab138
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bitnami/haproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ maintainers:
name: haproxy
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/haproxy
version: 1.0.4
version: 1.1.0
1 change: 1 addition & 0 deletions bitnami/haproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
| `service.loadBalancerIP` | haproxy service Load Balancer IP | `""` |
| `service.loadBalancerSourceRanges` | haproxy service Load Balancer sources | `[]` |
| `service.externalTrafficPolicy` | haproxy service external traffic policy | `Cluster` |
| `service.externalIPs` | External IPs | `[]` |
| `service.annotations` | Additional custom annotations for haproxy service | `{}` |
| `service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
| `service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions bitnami/haproxy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
{{- if .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if .Values.service.externalIPs }}
externalIPs: {{- toYaml .Values.service.externalIPs | nindent 4 }}
{{- end }}
{{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions bitnami/haproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ service:
## @param service.externalTrafficPolicy haproxy service external traffic policy
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
##
## @param service.externalIPs [array] External IPs
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
##
externalIPs: []
externalTrafficPolicy: Cluster
## @param service.annotations Additional custom annotations for haproxy service
##
Expand Down

0 comments on commit f5ab138

Please sign in to comment.