Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问k8s环境下,etcd的怎么配置呢? #5

Open
wahson-gong opened this issue Oct 18, 2021 · 2 comments
Open

请问k8s环境下,etcd的怎么配置呢? #5

wahson-gong opened this issue Oct 18, 2021 · 2 comments

Comments

@wahson-gong
Copy link

`Etcd:
Hosts:

  • 127.0.0.1:2379
    Key: systemuserget.rpc`
    这是在本地装有etcd服务的时候的yaml文件配置,那如果将服务部署到k8s上后,etcd的host和key应该怎么填写呢?B站的教程关于部署的流程不是很详细,望大佬指教
@wahson-gong
Copy link
Author

我能想到的一个办法是单独启动一个etcd的docker服务,但是k8s里就用了etcd了呀,这样做会不会不是很好。
看到go-zero的demo里有一个 Target: k8s://adhoc/server:3456 配置参数,说的是可以用endpoints做服务发现,但是具体应该怎么用呢?

@xiaopenggithub
Copy link
Owner

可以独立安装etcd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants