我正在内部运行的centos VM上安装kubernetes(kubeadm)Virtualbox,所以我安装了yum kubeadm, kubelet和docker。
现在,当我尝试设置群集时kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32遇到以下错误:
Unable to update cni config: No networks found in /etc/cni/net.d
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
Run Code Online (Sandbox Code Playgroud)
所以我检查了,即使安装了cni文件夹/etc也没有kubernetes-cni-0.6.0-0.x86_64。我尝试发表评论KUBELET_NETWORK_ARGS,/etc/systemd/system/kubelet.service.d/10-kubeadm.conf但没有成功。
PS:
我正在安装代理。
我有多个网络适配器:
NAT:Internet的10.0.2.15/24
仅限主机:192.168.56.33/32
和docker接口:172.17.0.1/16
Docker版本:17.12.1-ce
kubectl版本:主要:“ 1”,次要:“ 9”,GitVersion:“ v1.9.3”
Centos 7
使用nexus 3,我使用“ https://pypi.org ”作为远程存储配置了一个代理python存储库。存储库的 url 是“ http://localhost:8081/repository/pypi/ ”。
然后我曾经pip使用nexus存储库安装软件包,$HOME/.config/pip/pip.conf我有以下配置:
[global]
index = http://localhost:8081/repository/pypi/pypi
index-url = http://localhost:8081/repository/pypi/stable
trusted-host = localhost
Run Code Online (Sandbox Code Playgroud)
现在当我运行时pip search pexpect它工作正常:
User for localhost:8081: someuser
Password:
pexpect (4.7.0) - Pexpect allows easy control of interactive console applications.
pexpect-serial (0.0.4) - pexpect with pyseriat
...
Run Code Online (Sandbox Code Playgroud)
但是当我运行时pip install pexpect出现以下错误:
Collecting pexpect
User for localhost:8081: someuser
Password:
Could not find a version that satisfies the requirement pexpect (from versions: )
No matching distribution found …Run Code Online (Sandbox Code Playgroud)