#把服务配置文件copy到系统服务目录
$ cp ~/kubernetes-starter/target/master-node/etcd.service /lib/systemd/system/
#enable服务
$ systemctl enable etcd.service
#创建工作目录(保存数据的地方)
$ mkdir -p /var/lib/etcd
# 启动服务
$ service etcd start
# 查看服务日志,看是否有错误信息,确保服务正常
$ journalctl -f -u etcd.service
我在查看日志的时候出现如下提示: this is strongly discouraged! 请问这个是什么问题,怎么解决?
另: 10.9.198.118是我的主节点的ip,可以忽略
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: dialing to target with scheme: ""
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: could not get resolver for scheme: ""
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: serving insecure client requests on 10.9.198.118:2379, this is strongly discouraged!
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: ready to serve client requests
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: dialing to target with scheme: ""
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: could not get resolver for scheme: ""
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: serving insecure client requests on 127.0.0.1:2379, this is strongly discouraged!
4月 28 16:07:47 xxxx-198-118.xxxx.org systemd[1]: Started Etcd Server.
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: set the initial cluster version to 3.2
4月 28 16:07:47 xxxx-198-118.xxxx.org etcd[19989]: enabled capabilities for version 3.2