DEV Community

Discussion on: Why developers hate PHP

Collapse
 
verystrongfingers profile image
Mitchell

it's a pain in k8s to consider always a webserver sidecar that needs access to the same files

it's worth noting nginx-ingress now has FCGI support, you can get away with one deployment & an ingress nowadays :)

Thread Thread
 
andreidascalu profile image
Andrei Dascalu

Ah, the promised land is here! I will try it though at a glance this helps as long as you’re using a proper framework/router with a single entry point.

Thread Thread
 
verystrongfingers profile image
Mitchell

there's annotations to cover rewrite rules as well
kubernetes.github.io/ingress-nginx... which would be appropriate for a non-router based app.
I haven't tried it myself yet, but it nginx-ingress now seems viable enough to replace the sidecar/pod reverse-proxy for PHP deployments