Comments (8)
This is a problem of https://github.com/nextcloud/docker though, it should be fixed in the image and not the Helm chart.
from helm.
Agree that the original limit of 128 is from the docker image but still, the need to adjust that setting to different values remains. There are cases where people put it at 1,024.
As such, the second need remains : the need to fix that value from the chart to something different. And once it is an option, the chart will be able to compensate for that problem in the upstream docker image.
So 2nd point would be the reason to do it and 1st point would be an important side benefit of doing it.
from helm.
Agree about the fact that so many php options exist and as such, may need to be adjusted. That rabbit hole can be pretty deep...
If you choose to only document this fix, it would be important to mention that the "zz-" prefix for the file is important and is to ensure the file will be read last, so its value will overwrite whatever other values have been configured previously.
from helm.
@jessebot I agree with you, either fix it upstream or use a config file. Adding extra options for all php options is not helpful.
from helm.
I was actually just looking at the PHP settings in #327 😁 ! So, yeah, as @provokateurin said, that memory limit is actually configured upstream in the docker repo they've linked here:
https://github.com/nextcloud/docker/blob/064069b3060092b64f6fc1e418932fa215d57364/Dockerfile-alpine.template#L82
and also here:
https://github.com/nextcloud/docker/blob/064069b3060092b64f6fc1e418932fa215d57364/Dockerfile-debian.template#L21
You could maybe also override it nextcloud.extraEnv
in your values.yaml like this (instead of how you did it above
Update: Scratch that above statement about the env vars. I missed you explaining you tried that prior, and I just tested it and it didn't work. sorry about that!
from helm.
I understand your point, but I think @provokateurin's original comment still stands in that we should actually update it upstream, if its affecting everyone:
We could also have some docs on updating that PHP memory limit in our README, and we'd could review that PR if you or others would like to submit that. I guess alternatively, we could have the php memory limit be an actual option in the chart like:
nextcloud:
php:
memory_limit: 512M
That avoids the needs to do:
nextcloud:
phpConfigs:
zz-memory_limit.ini: |-
upload_max_filesize=5G
memory_limit=512M
But then we do kinda run the risk of scope creep on this one, as there's a lot of PHP options people could need. @provokateurin and @tvories what do yall think? :) Am I overthinking this? (if the answer is yes, that's totally fine!)
from helm.
Okie dokie, submitted #595 :)
from helm.
@Heracles31 since #595 was merged, this was auto-closed, but if you'd to adjust the wording in the docs, please feel free to let us know or submit a new PR. For actually adjusting the default memory limit for php.ini, you'll need to go to the nextcloud/docker repo, but don't worry, they are friendly :)
from helm.
Related Issues (20)
- Android | DAVx5 autoconfig does not work | PROPFIND |405 Not Allowed
- Redis config customizations superseded by builtin environment variables HOT 5
- Can't start Nextcloud because the version of the data (0.0.0.0) is higher than the docker image version () and downgrading is not supported. Are you sure you have pulled the newest image version? HOT 1
- Helm chart 4.6.8 does not work when using an external database for NextCloud. "key" is not defined. HOT 1
- Cannot disable packaged PostgreSQL HOT 2
- Feature: Use CronJob resources instead of a container with crond HOT 9
- Enabling `.persistence.enabled` leads to `/var/www/html/lib` and probably other files not being created HOT 5
- chown permission in nfs pvc HOT 2
- Error: Accessing site insecurely via HTTP | Config Question HOT 3
- Add ExtraVolumes for Cronjob Container HOT 2
- Feature: Add Valkey as an optional subchart to be an alternative to redis HOT 1
- Feature: Add test for enabling redis to ci
- Feature: Add test for metrics in CI
- Feature: Add OnlyOffice as a subchart
- Feature: Add Collabora as a subchart
- New S3 Configuration breaks prior S3 configuration and is missing uploadPartSize HOT 6
- Feature: Add test for adding extra configs in CI
- failed to create resource: Deployment.apps "nextcloud" is invalid: [spec.template.spec.containers[0].env[22].valueFrom.secretKeyRef.key: Required value, spec.template.spec.containers[1].env[22].valueFrom.secretKeyRef.key: Required value] HOT 1
- Changing nextcloud.host vars results in crashloopbackoff HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm.