安装k8s环境的第一步安装etcd日志有问题
来源:7-5 基础集群部署(上)
Sky_YiBai
2018-04-28
#把服务配置文件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
3回答
-
没用证书导致的,只是提示你说不鼓励这样做。没问题的
022018-04-28 -
刘果国
2018-04-28
是不是修改了服务配置?按提示操作一下00 -
Sky_YiBai
提问者
2018-04-28
执行安装kube-apiserver时有错误:
Redirecting to /bin/systemctl start kube-apiserver.service
Warning: kube-apiserver.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for kube-apiserver.service failed because the control process exited with error code. See "systemctl status kube-apiserver.service" and "journalctl -xe" for details.
查看错误详情如下,不知道是不是和service-cluster-ip-range是否有关,我试图修改成10.0.0.0/24然后再启动,会出现别的错误。辛苦再帮忙解答一下
00
相似问题