New to kubernetes and php, so I’m having some issues. Any and all help is greatly appreciated! results in error When switching ‘.$postgres_pod.’ for postgres-7957478b7d-tmw6m as below – it executes fully Thanks – Mike Answer There can sometimes be extra whitespace before or after strings, especially return characters which don’t always show up when echoing the result. Using trim($postgres_pod) will
Tag: kubernetes
php-fpm: File not found in kubernetes
I’m trying to set a k8s deployment with 2 pods (nginx + php-fpm), but I can’t get php-fpm to execute the php scripts. The webpage displays File not found., and in logs : fpm pod : 192.168.3.187 – 13/Nov/2020:16:44:06 +0000 “GET /index.php” 404 nginx pod : 2020/11/13 16:44:06 [error] 20#20: *1 FastCGI sent in stderr: “Primary script unknown” while reading
nginx not serving JS, CSS files for PHP app behind ingress-nginx
Can’t seem to get this working and need help on where I am going wrong. Have an old PHP app subpathed at /admin. ingress-nginx forwards the traffic for it to an nginx server running in the Pod. I’ve verified I can do the following and it serves the assets correctly: kubectl port-forward <admin-pod> 4000:4000 skaffold dev –port-forward docker run -p
Laravel Horizon not executing pending jobs – Kubernetes and Docker environment
We have two different pods in Kubernetes for our Laravel app, one running apache serving on port 80, (CMD /usr/sbin/apache2ctl -D FOREGROUND) and another running worker (Laravel Horizon) (CMD php /var/www/artisan horizon) The issue is when I check the horizon dashboard, it says ‘Active’, and I can see the Jobs in the ‘Pending Jobs’ section, but they never actually execute.