zindle icon indicating copy to clipboard operation
zindle copied to clipboard

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

Open wahson-gong opened this issue 3 years ago • 2 comments

`Etcd: Hosts:

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

wahson-gong avatar Oct 18 '21 02:10 wahson-gong

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

wahson-gong avatar Oct 18 '21 02:10 wahson-gong

可以独立安装etcd

xiaopenggithub avatar Oct 22 '21 13:10 xiaopenggithub