I'm using Kubernetes on Digitalocean cloud platform
the deckorized laravel app is running right now
and i need to run php artisan optimize:clear to all pods which are loading the app
how can i do that?
Edit:
I got the solution
First step connect to pod container
kubectl exec -it pod_name -- /bin/bash
then
php artisan optimize:clear
or
kubectl exec -it pod_name -- /bin/bash -c "php artisan route:clear"