Skip to content

Commit 97e571f

Browse files
committed
feat(nextcloud): Allow specifying service session affinity in helm chart
1 parent 6c157a4 commit 97e571f

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎charts/nextcloud/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 7.0.2
3+
version: 7.0.3
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 31.0.8
66
description: A file sharing server that puts the control and security of your own data back into your hands.

‎charts/nextcloud/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ The following table lists the configurable parameters of the nextcloud chart and
208208
| `service.nodePort` | NodePort for service type NodePort | `nil` |
209209
| `service.ipFamilies` | Set ipFamilies as in k8s service objects | `nil` |
210210
| `service.ipFamyPolicy` | define IP protocol bindings as in k8s service objects | `nil` |
211+
| `service.sessionAffinity` | Kubernetes service Session Affinity | `None` |
211212
| `phpClientHttpsFix.enabled` | Sets OVERWRITEPROTOCOL for https ingress redirect | `false` |
212213
| `phpClientHttpsFix.protocol` | Sets OVERWRITEPROTOCOL for https ingress redirect | `https` |
213214
| `resources` | CPU/Memory resource requests/limits | `{}` |

‎charts/nextcloud/templates/service.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ spec:
2323
{{- with .Values.service.ipFamilyPolicy }}
2424
ipFamilyPolicy: {{ . }}
2525
{{- end }}
26+
{{- with .Values.service.sessionAffinity }}
27+
sessionAffinity: {{ . }}
28+
{{- end }}
2629
ports:
2730
- port: {{ .Values.service.port }}
2831
targetPort: {{ .Values.nextcloud.containerPort }}

‎charts/nextcloud/values.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ service:
596596
nodePort:
597597
# -- use additional annotation on service for nextcloud
598598
annotations: {}
599+
# Set this to "ClientIP" to make sure that connections from the same client
600+
# are passed to the same Nextcloud pod each time.
601+
sessionAffinity: "None"
599602

600603
## Enable persistence using Persistent Volume Claims
601604
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/

0 commit comments

Comments
 (0)