Hello,

kubernetes 1.8.3
docker 17.04.0-ce

/etc/systemd/system/kubelet.service
ExecStart=/usr/local/bin/kubelet --allow-privileged --v=2 
--cloud-provider="" --register-node=true --fail-swap-on=false 
--require-kubeconfig --pod-manifest-path="/etc/kubernetes/manifests" 
--network-plugin=kubenet --non-masquerade-cidr=10.20.0.0/16

docker
/usr/bin/dockerd --containerd /run/containerd/containerd.sock --add-runtime 
oci=/usr/bin/docker-runc --insecure-registry=0.0.0.0/0 --ip-forward=false 
--log-level=warn --bridge=cbr0 --iptables=false --ip-masq=false 
--fixed-cidr=10.20.2.0/24

cbr0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc htb state UP group 
default qlen 1000
inet 10.20.2.1/24 scope global cbr0

pod is failed to deploy with this error
failed: rpc error: code = Unknown desc = NetworkPlugin kubenet failed to 
set up pod \"kuard-96546769b-2gl6r_default\" network: Error adding 
container to network: failed to set bridge addr: \"cbr0\" already has an IP 
address different from 10.20.1.1/24"

Q: I am not sure why it is trying to use 10.20.1.x instead of 10.20.2.x

I'd appreciate if anyone has an advice for me.

Thanks,
Jerry

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to