Skip to content

Commit

Permalink
feat: add support for dual stack clusters
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Ortega <[email protected]>
  • Loading branch information
M0NsTeRRR committed Apr 6, 2024
1 parent 1088118 commit ccd6bce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/k8up/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect
| 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". |
| metrics.prometheusRule.namespace | string | `""` | If the object should be installed in a different namespace than operator |
| metrics.service.annotations | object | `{}` | Annotations to add to the service |
| 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. |
| 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) |
| metrics.service.nodePort | int | `0` | Service node port of the metrics endpoint, requires `metrics.service.type=NodePort` |
| metrics.service.port | int | `8080` | |
| metrics.service.type | string | `"ClusterIP"` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/k8up/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ metadata:
{{- end }}
spec:
type: {{ .Values.metrics.service.type }}
{{- if .Values.metrics.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.metrics.service.ipFamilyPolicy }}
{{- end }}
{{- if .Values.metrics.service.ipFamilies }}
ipFamilies: {{ .Values.metrics.service.ipFamilies | toYaml | nindent 2 }}
{{- end }}
ports:
- name: http
port: {{ .Values.metrics.service.port }}
Expand Down
4 changes: 4 additions & 0 deletions charts/k8up/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ metrics:
service:
port: 8080
type: ClusterIP
# -- Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services)
ipFamilyPolicy: ""
# -- 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.
ipFamilies: []
# -- Service node port of the metrics endpoint, requires `metrics.service.type=NodePort`
nodePort: 0
# -- Annotations to add to the service
Expand Down

0 comments on commit ccd6bce

Please sign in to comment.