How to run PHP in Kubernetes via unix socket?
<p>I have nginx and php-fpm containers in Google Container Engine and I would like to run it through unix socket instead of network.</p>

<p>I also have the Google SQL Proxy container and it uses empty volume to provide connection to Google SQL databases through sockets placed on that volume that is shared with other containers. So I was thinking of using the same approach for PHP but it is not working.</p>

<p>I have empty volume of emptyDir type mounted to php and nginx containers. The volume is mounted, I can see it in both containers. But if I try to use nginx I will get (socket)file not found in logs.</p>

<p>I have also added the www-data(same uid as in php container) user into nginx container and set it in nginx conf but it didn't help.</p>

<p>Is Google SQL Proxy special in some way and I have to use network for PHP or am I missing something here?</p>