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

关于flannel网络插件的安装问题 #449

Open
lijixiangluck opened this issue Aug 8, 2021 · 0 comments
Open

关于flannel网络插件的安装问题 #449

lijixiangluck opened this issue Aug 8, 2021 · 0 comments
Labels
area/network 网络问题

Comments

@lijixiangluck
Copy link

环境

etcd version: 3.4.13
etcd api: 3.4
版本和配置信息

  • kubernetes版本:s/c : 1.12.10
  • docker版本:1.31.1
  • 网络插件:flannel
  • 存储类型:etcd

操作

在本书第6.2.6节: 安装flannel网络插件。 中
image
出现无法使用该命令 并报错: Error: unknown command "mkdir" for "etcdctl"
后来在查找问题得知是API版本原因 。解决办法:export ETCDCTL_API=2
解释: 在etcd3.4版本之前是 API版本是2 ;etcd3.4版本之后 API版本是3。具体可以通过 etcdctl --help 查看两者的区别

进一步
以上 Error: unknown command "mkdir" for "etcdctl"解决之后 继续运行命令 出现如下新问题:
Error: client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint
请问大家又遇到这个问题吗 感谢 卡在这里了

@rootsongjc rootsongjc added the area/network 网络问题 label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/network 网络问题
Projects
None yet
Development

No branches or pull requests

2 participants