title: kubernetes volumes and sockets
body: <p>I have two containers inside the same pod. One is an haproxy container and I'm pushing the haproxy statistics to a socket inside the container. I want to access the socket inside the haproxy container from the other container. I tried to use volume type mkdir but an error occurred mentioning that there is no unix sockets under the directory which I'm trying to access.
  I'm new to these technologies and please help me to solve this problem.</p>
  
  <p>The yaml file is as follows.</p>
  
  <p><a href="https://i.stack.imgur.com/MBPl8.png" rel="nofollow noreferrer">yaml file</a></p>