<p>I have installed a k8s cluster on AWS with kops and I have followed instructions to deploy api-platform on that cluster with helm.</p>

<p>I don't understand why the php pod log shows a 405 when php-pod try to invalidate cache into varnish-pod.</p>

<p>In the Varnish pod inside /usr/local/etc/varnish/default.vcl my whitelist is the default one</p>

<pre><code># Hosts allowed to send BAN requests
acl invalidators {
  "localhost";
  "php";
}
</code></pre>

<p>UPDATE I think that the problem can be generalized in this way: from a pod A inside a service A I want to call a service B. I need that in the request (received in pod B) is preserved the IP of the service A not the IP of the pod A. </p>

<p>Here's an easier fix from api-platform: <a href="https://github.com/api-platform/demo/blob/master/api/docker/varnish/conf/default.vcl#L22-L25" rel="nofollow noreferrer">https://github.com/api-platform/demo/blob/master/api/docker/varnish/conf/default.vcl#L22-L25</a></p>

<p>I think they will update the helm chart with this one</p>
