Skip to content
Open
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
7 changes: 3 additions & 4 deletions docker/deployment/base/next-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ kind: Ingress
metadata:
name: languageforge-app
annotations:
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-max-body-size
# Added this to allow large file uploads, this setting should match the php custom config, i.e., upload_max_filesize, found in the app's customizations.php.ini
nginx.ingress.kubernetes.io/proxy-body-size: 60M
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: localhost
http:
paths:
- path: /
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: next-proxy
Expand Down
17 changes: 17 additions & 0 deletions docker/deployment/prod/ingress-class-revert-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Temporary patch: prod still runs on the (retired) community ingress-nginx
# controller. The base manifest has been flipped to Traefik for the staging
# cutover; this patch keeps prod on nginx until its own DNS cutover is
# scheduled with LTOps. Delete this patch (and the kustomization entry that
# references it) when prod migrates to Traefik.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: languageforge-app
annotations:
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-max-body-size
# Added this to allow large file uploads, this setting should match the php custom config, i.e., upload_max_filesize, found in the app's customizations.php.ini
nginx.ingress.kubernetes.io/proxy-body-size: 60M
# Strip the Traefik router annotation inherited from base; prod is still on nginx.
traefik.ingress.kubernetes.io/router.tls: null
spec:
ingressClassName: nginx
6 changes: 6 additions & 0 deletions docker/deployment/prod/ingress-config-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
path: /spec/tls/0/hosts
value:
- languageforge.org
# Revert base's pathType change until prod migrates from ingress-nginx to Traefik.
# This apparently isn't necessary, but I'm being conservative.
# Remove this op when prod migrates.
- op: replace
path: /spec/rules/0/http/paths/0/pathType
value: ImplementationSpecific
3 changes: 3 additions & 0 deletions docker/deployment/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ patches:
kind: Ingress
name: languageforge-app
namespace: languageforge
# Keep prod on the community ingress-nginx controller until its DNS cutover
# to Traefik is scheduled. Remove this once prod migrates.
- path: ingress-class-revert-patch.yaml
Loading