Repository navigation
feat(nextcloud): Allow specifying service session affinity in helm chart - #765
Conversation
There was a problem hiding this comment.
Could you add also an toYaml for sessionAffinityConfig
Are your sure that this has your wish affect?
Maybe you want to take a look into your IngressController:
https://github.com/nextcloud/helm/tree/main/charts/nextcloud#ingress-sticky-sessions
|
As far as I understand, there are two different load-balancing system here:
So to answer your question, I'm fairly confident that this has the right effect, because I checked that the same user was correctly going to the same nginx instance, same service, but somehow ended up on different pods. |
|
Why you close your PR, it was already really good and close to merge? Thanks for your description, the kube-proxy setup explant good your needs. For the most ingress-controller the most use direct the Endpoints behind the service (and for the service the Client is the ingress-controller pod). |
|
Ah sorry, I'm not used to github, and I thought I was closing a comment, not the PR. Let me reopen it. |
|
LGFM, do you like to signoff your commits? |
f07b786 to
0f34a62
Compare
|
Should be good :) |
|
Sadly not, could you take a Look in the DCO check/action/job? |
Signed-off-by: Victor Lavaud <victor.lavaud@pm.me>
…ion in helm chart Signed-off-by: Victor Lavaud <victor.lavaud@pm.me>
|
Ah it looks like the commit should be signed and a line with "Signed Off by" should appear in the commit message. It only had the first part. |
… chart
Description of the change
Services in kubernetes have the notion of session affinity which allow a given client to be sent to the same backend.
Benefits
When multiple instances of Nextcloud are deployed (for high availability), certain applications may break, for instance because a CSRF token is generated in one pod, and evaluated in another pod.
This feature mitigates this sort of application bugs.
Possible drawbacks
When enabled, the load between the pods may become uneven. However this is a choice of the administrator.
Checklist
Chart.yamlaccording to semver.