Skip to content

Commit

Permalink
Merge pull request #126 from roobre/ipFamilyPolicy
Browse files Browse the repository at this point in the history
jvb: allow to specify jvb service's ipFamilyPolicy
  • Loading branch information
spijet authored Sep 4, 2024
2 parents ec9e7de + 6993db1 commit 42a74f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ Parameter | Description | Default
`jvb.stunServers` | List of STUN/TURN servers to announce to the users | `meet-jit-si-turnrelay.jitsi.net:443`
`jvb.service.enabled` | Boolean to enable os disable the jvb service creation | `false` if `jvb.useHostPort` is `true` otherwise `true`
`jvb.service.type` | Type of the jvb service | `ClusterIP`
`jvb.service.ipFamilyPolicy` | `ipFamilyPolicy` for the service ([docs](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services)) | `(unset)`
`jvb.service.annotations` | Additional annotations for JVB service (might be useful for managed k8s) | `{}`
`jvb.service.extraPorts` | Additional ports to expose from your JVB pod(s) | `[]`
`jvb.UDPPort` | UDP port used by jvb, also affects port of service, and hostPort | `10000`
Expand Down
3 changes: 3 additions & 0 deletions templates/jvb/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
{{- with .Values.jvb.service.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- with .Values.jvb.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ . }}
{{- end }}
ports:
- port: {{ default 10000 .Values.jvb.UDPPort }}
{{- if and .Values.jvb.nodePort (or (eq .Values.jvb.service.type "NodePort") (eq .Values.jvb.service.type "LoadBalancer")) }}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ jvb:
type: ClusterIP
externalTrafficPolicy: Cluster
externalIPs: []
## If type is set to LoadBalancer and the cluster is dual stack, ipFamilyPolicy can be set to enable dual stack
# addressing for the service.
# ipFamilyPolicy: PreferDualStack
## Annotations to be added to the service (if LoadBalancer is used)
# An example below is needed for DigitalOcean managed k8s setups
# with a LoadBalancer service, so that DO's external LB can perform
Expand Down

0 comments on commit 42a74f1

Please sign in to comment.