本文介绍了如何向Google Cloud MemoryStore添加密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从云功能访问google cloud memorystore,但我知道尚不支持,所以我尝试了变通方法,在我的kubernetes集群中添加haproxy并使其能够使用来自loadbalancer类型的kubernetes服务进行公开访问,并将tcp请求转发至记忆库.

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.

它对我来说很好用,我可以从云功能连接到我的memorystore实例,但是只有我遇到的问题,我需要修复它才能在haproxy级别或memorystore级别上保护memorystore,我尝试添加一个密码进入memorystore,但是我发现CONFIG命令被禁用.

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.

这是我的haproxy配置:

That's my haproxy config:

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

有什么建议吗?

推荐答案

我们尚不支持App Engine或Cloud功能的网络连接.我们正在努力在将来添加此支持.

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

就像您发现支持GKE环境的连接一样.

Like you found out connectivity from GKE environment is supported.

我们尚不支持AUTH配置,此功能将在不久的将来出现在我们的路线图上.

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

感谢您的反馈,般若塔

Thanks for the feedback,Prajakta

(GCP上的工程经理)

(Engineering Manager on GCP)

这篇关于如何向Google Cloud MemoryStore添加密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-21 02:07