Skip to content

Commit 5d67b16

Browse files
authored
Merge pull request #954 from M0NsTeRRR/master
[enhancement] add support for dual stack clusters
2 parents 2971c49 + ccd6bce commit 5d67b16

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

charts/k8up/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect
6969
| metrics.prometheusRule.jobFailedRulesFor | list | `["archive","backup","check","prune","restore"]` | Create default rules for the given job types. Valid values are "archive", "backup", "check", "prune", and "restore". |
7070
| metrics.prometheusRule.namespace | string | `""` | If the object should be installed in a different namespace than operator |
7171
| metrics.service.annotations | object | `{}` | Annotations to add to the service |
72+
| metrics.service.ipFamilies | list | `[]` | Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. |
73+
| metrics.service.ipFamilyPolicy | string | `""` | Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) |
7274
| metrics.service.nodePort | int | `0` | Service node port of the metrics endpoint, requires `metrics.service.type=NodePort` |
7375
| metrics.service.port | int | `8080` | |
7476
| metrics.service.type | string | `"ClusterIP"` | |

charts/k8up/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ metadata:
1010
{{- end }}
1111
spec:
1212
type: {{ .Values.metrics.service.type }}
13+
{{- if .Values.metrics.service.ipFamilyPolicy }}
14+
ipFamilyPolicy: {{ .Values.metrics.service.ipFamilyPolicy }}
15+
{{- end }}
16+
{{- if .Values.metrics.service.ipFamilies }}
17+
ipFamilies: {{ .Values.metrics.service.ipFamilies | toYaml | nindent 2 }}
18+
{{- end }}
1319
ports:
1420
- name: http
1521
port: {{ .Values.metrics.service.port }}

charts/k8up/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ metrics:
9090
service:
9191
port: 8080
9292
type: ClusterIP
93+
# -- Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services)
94+
ipFamilyPolicy: ""
95+
# -- Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6.
96+
ipFamilies: []
9397
# -- Service node port of the metrics endpoint, requires `metrics.service.type=NodePort`
9498
nodePort: 0
9599
# -- Annotations to add to the service

0 commit comments

Comments
 (0)