<p>I need to access google cloud memorystore from cloud function but i know it's not supported yet, so i tried workaround to add haproxy in my kubernetes cluster and make it publicly access able using kubernetes service from type loadbalancer and forward the tcp requests to memorystore.</p>

<p>It works fine with me and i can connect to my memorystore instance from cloud function, but only the problem i have and i need fix for it to securing memorystore  on the haproxy level or on the memorystore level, i tried to add a password to memorystore but i found the CONFIG command is disabled.</p>

<p>That's my haproxy config:</p>

<pre><code>frontend redis_frontend
   bind *:6379
   mode tcp
   option tcplog
   timeout client  1m
   default_backend redis_backend

backend redis_backend
   mode tcp
   option tcplog
   option log-health-checks
   option redispatch
   log global
   balance roundrobin
   timeout connect 10s
   timeout server 1m
   server redis_server 10.0.0.12:6379 check
</code></pre>

<p>So any suggestions ?</p>

<p>We don't support network connectivity from App Engine or Cloud functions yet. We are working on adding this support in the future.</p>

<p>Like you found out connectivity from GKE environment is supported. </p>

<p>We don't support AUTH config yet, this feature is on our roadmap in near future. </p>

<p>Thanks for the feedback,
Prajakta</p>

<p>(Engineering Manager on GCP)</p>
