Skip to content

Commit 78c3c7f

Browse files
authored
feat(nextcloud): Allow specifying service session affinity in helm chart #765
feat(nextcloud): Allow specifying service session affinity in helm chart
2 parents 6c157a4 + 1025555 commit 78c3c7f

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ 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 | `nil` |
212+
| `service.sessionAffinityConfig` | Kubernetes service Session Affinity configuration | `{}` |
211213
| `phpClientHttpsFix.enabled` | Sets OVERWRITEPROTOCOL for https ingress redirect | `false` |
212214
| `phpClientHttpsFix.protocol` | Sets OVERWRITEPROTOCOL for https ingress redirect | `https` |
213215
| `resources` | CPU/Memory resource requests/limits | `{}` |

charts/nextcloud/templates/service.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ spec:
2323
{{- with .Values.service.ipFamilyPolicy }}
2424
ipFamilyPolicy: {{ . }}
2525
{{- end }}
26+
{{- with .Values.service.sessionAffinity }}
27+
sessionAffinity: {{ . }}
28+
{{- end }}
29+
{{- with .Values.service.sessionAffinityConfig }}
30+
sessionAffinityConfig:
31+
{{- toYaml . | nindent 4 }}
32+
{{- end }}
2633
ports:
2734
- port: {{ .Values.service.port }}
2835
targetPort: {{ .Values.nextcloud.containerPort }}

charts/nextcloud/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,10 @@ 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: ""
602+
sessionAffinityConfig: {}
599603

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

0 commit comments

Comments
 (0)