phpConfigs ignored in FPM images
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
values.yaml と PR 71 の変更から始め、phpConfigs が /usr/local/etc/php-fpm.d および /usr/local/etc/php/conf.d に対してどこでレンダリングされ、マウントされるかを追跡します。ini 設定が PHP-FPM によって読み込まれること、および PHP_INI_SCAN_DIR に依存せずにプール設定用の個別の値を定義して文書化できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe your Issue
Overview
The changes introduced in [PR 71] have affected the handling of phpConfigs, leading to some confusion about the expected values in this parameter.
Background
The original purpose of the /usr/local/etc/php-fpm.d directory is to permit customization of php-fpm pool definitions via *.conf files. This is defined under the include parameter in the php-fpm.conf file.
According to the current README, the phpConfigs setting is designed for custom php.ini values. An example provided demonstrates how to change the php memory_limit parameter.
Logs and Errors
In the current deployment of nginx + php-fpm, settings added to phpConfigs appear ineffective.
Following [PR 71], generated configmap files are mounted to the /usr/local/etc/php-fpm.d directory, but this directory is not utilized as a source for ini files. Instead, the php-fpm process reads additional ini files from /usr/local/etc/php/conf.d, similar to the behavior of the PHP-SAPI module for Apache.
Describe your Environment
-
Kubernetes distribution: Vanilla v1.23.17
-
Helm version: 3.15.4 (using helmfile, 0.168.0)
-
Helm Chart Version: 6.2.3
-
values.yaml:
...
phpConfigs:
opcache-tunning.ini: |-
opcache.memory_consumption=256
...
Additional context, if any
Workaround
As a temporary solution, I added the following environment variable:
PHP_INI_SCAN_DIR=:/usr/local/etc/php-fpm.d/
This instructs PHP to also search for ini files in /usr/local/etc/php-fpm.d, in addition to /usr/local/etc/php/conf.d. However, this feels like a makeshift workaround.
Suggestion
I suggest introducing an additional Helm value to distinguish between the two functionalities: one for ini settings and another for php-fpm pool settings. This would involve:
- Keeping
phpConfigsfor custom ini files. - Adding a distinct parameter for php-fpm pool configurations, such as
phpFpmPools.
- 主要言語
- Go Template
- スター
- 536
- フォーク
- 316
- 平均マージ
- 4日 16時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/helm のほかの issue
-
No native support for REDIS_USER enviroment var対応中かも @jholmes802 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is set対応中かも @JanWelker が 17 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
-
External Redis not working: redis-session.ini: Permission denied対応中かも @antoinetran が 21 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
似ている issue
-
test: gcloud CLI suites clobber ~/.config/gcloud, breaking local gcloud/gcloud-backed juju workflowsオープンneeds-kind needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
enhancement service/recovery-services v/5.x
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hashicorp/terraform-provider-azurerm#33587 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ovh/terraform-provider-ovh#1473 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jenkinsci/ec2-plugin#2041 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
spiffe/helm-charts-hardened#976 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信