Skip to content

Commit 9e818fe

Browse files
Merge branch 'main' into external-redis-signed
Signed-off-by: RisingOpsNinja <[email protected]>
2 parents 9f1e7c3 + 78c3c7f commit 9e818fe

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

charts/nextcloud/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ The following table lists the configurable parameters of the nextcloud chart and
215215
| `service.nodePort` | NodePort for service type NodePort | `nil` |
216216
| `service.ipFamilies` | Set ipFamilies as in k8s service objects | `nil` |
217217
| `service.ipFamyPolicy` | define IP protocol bindings as in k8s service objects | `nil` |
218+
| `service.sessionAffinity` | Kubernetes service Session Affinity | `nil` |
219+
| `service.sessionAffinityConfig` | Kubernetes service Session Affinity configuration | `{}` |
218220
| `phpClientHttpsFix.enabled` | Sets OVERWRITEPROTOCOL for https ingress redirect | `false` |
219221
| `phpClientHttpsFix.protocol` | Sets OVERWRITEPROTOCOL for https ingress redirect | `https` |
220222
| `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
@@ -617,6 +617,10 @@ service:
617617
nodePort:
618618
# -- use additional annotation on service for nextcloud
619619
annotations: {}
620+
# -- Set this to "ClientIP" to make sure that connections from the same client
621+
# are passed to the same Nextcloud pod each time.
622+
sessionAffinity: ""
623+
sessionAffinityConfig: {}
620624

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

0 commit comments

Comments
 (0)