Skip to content
Advertisement

Tag: kubernetes

Kubeclt exec issues with variable via php script

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

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

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.

Advertisement