在我的virtualbox上的Kubenetes,我的Pod的IP等级为10.44.0.x,但是当我在环境办公室进行配置时。它将ip 172.17.0.x类分配给pod

时间:2018-06-26 07:24:46

标签: docker kubernetes kubectl kubeadm

我在VirtualBox上使用Kubenetes v1.10.4进行配置时,我的Pod的IP等级为10.44.0.x 但是,当我在环境办公室进行配置时。它将类ip 172.17.0.x分配给pod和一些ip重复项。而且我无法从master(cuatlrgcprpt01)卷曲172.17.0.2(cuatlrgcprpt02)。

我的虚拟盒子

return this.states.find(data => data.stateId === stateId);

我的办公室

[root@k8s-master ~]# kubectl get nodes
NAME           STATUS     ROLES     AGE       VERSION
k8s-master     Ready      master    34m       v1.10.5
worker-node1   NotReady   <none>    33m       v1.10.5

[root@k8s-master ~]# kubectl get services --all-namespaces
NAMESPACE     NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
default       kubernetes   ClusterIP   10.96.0.1       <none>        443/TCP         34m
default       my-nginx     NodePort    10.110.97.191   <none>       80:30080/TCP    32m
kube-system   kube-dns     ClusterIP   10.96.0.10      <none>        53/UDP,53/TCP   34m

[root@k8s-master ~]# kubectl get pods --all-namespaces  -o wide
NAMESPACE     NAME                                 READY     STATUS    RESTARTS   AGE       IP             NODE
default       my-nginx-77f56b88c8-5wc2x            1/1       Running   0          32m       10.44.0.2      worker-node1
default       my-nginx-77f56b88c8-hlqdh            1/1       Running   0          32m       10.44.0.1      worker-node1
kube-system   etcd-k8s-master                      1/1       Running   0          33m       172.20.10.13   k8s-master
kube-system   kube-apiserver-k8s-master            1/1       Running   0          33m       172.20.10.13   k8s-master
kube-system   kube-controller-manager-k8s-master   1/1       Running   0          33m       172.20.10.13   k8s-master
kube-system   kube-dns-86f4d74b45-44sbm            3/3       Running   0          34m       10.32.0.2      k8s-master
kube-system   kube-proxy-llngk                     1/1       Running   0          33m       172.20.10.14   worker-node1
kube-system   kube-proxy-nzhrp                     1/1       Running   0          34m       172.20.10.13   k8s-master
kube-system   kube-scheduler-k8s-master            1/1       Running   0          33m       172.20.10.13   k8s-master
kube-system   weave-net-c87g4                      2/2       Running   1          33m       172.20.10.14   worker-node1
kube-system   weave-net-s2v4s                      2/2       Running   1          34m       172.20.10.13   k8s-master

0 个答案:

没有答案