Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): improve README for ingress #621

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 6.2.0
version: 6.2.1
appVersion: 30.0.1
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
33 changes: 33 additions & 0 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ helm install my-release nextcloud/nextcloud
* [Installing the Chart](#installing-the-chart)
* [Uninstalling the Chart](#uninstalling-the-chart)
* [Configuration](#configuration)
* [Ingress-Controller](#ingress)
* [Database Configurations](#database-configurations)
* [Object Storage as Primary Storage Configuration](#object-storage-as-primary-storage-configuration)
* [Persistence Configurations](#persistence-configurations)
Expand Down Expand Up @@ -207,6 +208,38 @@ The following table lists the configurable parameters of the nextcloud chart and
| `podAnnotations` | Annotations to be added at 'pod' level | not set |
| `dnsConfig` | Custom dnsConfig for nextcloud containers | `{}` |

### Ingress
#### Ingress Sticky-Sessions

For loadbalance over multiple Pods, it is useful to configure sticky session.
provokateurin marked this conversation as resolved.
Show resolved Hide resolved

##### NGINX Ingress-Controller
To enable sticky sessions on that ingress controller you could set the following values in this helm-chart.
For more information take a look in the [ingress-controller documentation](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#session-affinity)
```yaml
ingress:
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
```

##### Traefik Ingress-Controller
To enable sticky sessions on that ingress controller you could set the following values in this helm-chart.
For more information take a look in the [ingress-controller documentation](https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#on-service)
```yaml
service:
annotations:
traefik.ingress.kubernetes.io/service.sticky.cookie: "true"
```

##### HAProxy Ingress-Controller (Community-Version)
To enable sticky sessions on that ingress controller you could set the following values in this helm-chart.
For more infromation take a look in the [ingress-controller documentation](https://haproxy-ingress.github.io/docs/configuration/keys/#affinity)
```yaml
ingress:
annotations:
haproxy-ingress.github.io/affinity: cookie
```

### Database Configurations
By default, nextcloud will use a SQLite database. This is not recommended for production, but is enabled by default for testing purposes. When you are done testing, please set `internalDatabase.enabled` to `false`, and configure the `externalDatabase` parameters below.

Expand Down
3 changes: 1 addition & 2 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,8 @@ service:
port: 8080
loadBalancerIP: ""
nodePort:
# -- use additional annotation on service for nextcloud
annotations: {}
## Insert your annotations such as below
# test/test: pumuckel

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