Skip to content

Commit df88da6

Browse files
committed
feat(haproxy): add IPv6 dual-stack support with ipFamilyPolicy and ipFamilies
1 parent e07d331 commit df88da6

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

bitnami/haproxy/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.2.35 (2025-01-10)
4+
5+
* [bitnami/haproxy] Add support for ipFamilyPolicy and ipFamilies in service configuration (#36384)
6+
37
## 2.2.34 (2025-08-13)
48

59
* [bitnami/haproxy] :zap: :arrow_up: Update dependency references ([#35817](https://github.com/bitnami/charts/pull/35817))

bitnami/haproxy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
234234
| `service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
235235
| `service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
236236
| `service.labels` | Additional custom labels for haproxy service | `{}` |
237+
| `service.ipFamilyPolicy` | IP family policy for the service | `""` |
238+
| `service.ipFamilies` | IP families for the service | `[]` |
237239
| `networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` |
238240
| `networkPolicy.allowExternal` | Don't require server label for connections | `true` |
239241
| `networkPolicy.allowExternalEgress` | Allow the pod to access any range of port and all destinations. | `true` |

bitnami/haproxy/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ metadata:
1818
{{- end }}
1919
spec:
2020
type: {{ .Values.service.type }}
21+
{{- if .Values.service.ipFamilyPolicy }}
22+
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
23+
{{- end }}
24+
{{- if .Values.service.ipFamilies }}
25+
ipFamilies: {{- include "common.tplvalues.render" (dict "value" .Values.service.ipFamilies "context" $) | nindent 4 }}
26+
{{- end }}
2127
{{- if .Values.service.clusterIP }}
2228
clusterIP: {{ .Values.service.clusterIP }}
2329
{{- end }}

bitnami/haproxy/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,20 @@ service:
133133
## @param service.labels Additional custom labels for haproxy service
134134
##
135135
labels: {}
136+
## @param service.ipFamilyPolicy IP family policy for the service
137+
## Allowed values: SingleStack, PreferDualStack, RequireDualStack
138+
## ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
139+
##
140+
ipFamilyPolicy: ""
141+
## @param service.ipFamilies IP families for the service
142+
## Allowed values: IPv4, IPv6
143+
## ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
144+
## e.g:
145+
## ipFamilies:
146+
## - IPv4
147+
## - IPv6
148+
##
149+
ipFamilies: []
136150
## Network Policies
137151
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
138152
##

0 commit comments

Comments
 (0)