Files
phpfpm/CHANGELOG-8.5.9-c.md
T
claudeandClaude Fable 5 e9428c6448
Helm Chart Release / release-chart (push) Successful in 5s
feat: IngressのproxyBodySizeもuploadMaxSizeに自動連動 (v8.5.9-c)
uploadMaxSizeでnginx/PHPのアップロード上限は連動していたが、
ingress.enabled: true の場合、ingress-nginx側にも独自の上限
(デフォルト1MB)があり、そこで先に弾かれるケースが残っていた。

templates/ingress.yaml で、ingress.annotationsに
nginx.ingress.kubernetes.io/proxy-body-sizeが明示指定されていない
場合、uploadMaxSizeの値を自動的に付与するようにした(merge使用、
明示指定があればそちらを優先)。

これでuploadMaxSize 1箇所の設定でnginx・PHP・Ingressの3箇所すべてに
反映される。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 00:09:20 +09:00

41 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog - Version 8.5.9-c
## 新機能
### Ingressのアップロードサイズ上限も uploadMaxSize に自動連動
v8.5.9-b で `uploadMaxSize` によりnginx/PHPのアップロード上限を連動させましたが、`ingress.enabled: true` で運用している場合、Ingressコントローラー(ingress-nginx)にも独自のリクエストサイズ上限(デフォルト1MB)があり、そこで先に弾かれてしまうケースが残っていました。
**対応**: `templates/ingress.yaml` で、`ingress.annotations``nginx.ingress.kubernetes.io/proxy-body-size` が明示指定されていない場合、`uploadMaxSize` の値を自動的に付与するようにしました。ユーザーが `ingress.annotations` に明示的に指定した場合はそちらが優先されます。
```yaml
# 何も指定しなくても、Ingressにも uploadMaxSize の値(デフォルト100m)が反映される
uploadMaxSize: "100m"
ingress:
enabled: true
```
これにより、`uploadMaxSize` 1箇所の設定で以下すべてに反映されます:
- nginxPodコンテナ内)の `client_max_body_size`
- PHPの `upload_max_filesize` / `post_max_size`
- ingress-nginxの `nginx.ingress.kubernetes.io/proxy-body-size`
## 互換性
- Ingressコントローラーがingress-nginx以外の場合、このアノテーションは無視されます。該当コントローラー向けの設定を `ingress.annotations` に明示的に指定してください。
- 既存で `ingress.annotations` に独自の `proxy-body-size` を指定している場合、その値がそのまま優先されるため影響ありません。
## アップグレード手順
```bash
helm repo update
helm upgrade <リリース名> cafepieters/phpfpm --version 8.5.9-c -f values.yaml
```
---
**リリース日**: 2026-08-06
**担当**: プロサーバーエンジニア(Claude)