Configuring the Flannel serviceRepeat the k8s installation section Flanneld related content
Step 1:grafana smtp configuration kubernetes
Nohup./flanneld--listen=0.0.0.0:8888 >>/opt/kubernetes/logs/flanneld.log 2>&1 & 110 Start server process on host kubernetes pod configuration file
Nohup./flanneld-etcd-endpoints=http://192.168.161.110:2379-remote=192.168.161.110:8888 >>flanenl.log 2> &1 & #各minons结点上启动flanneld
/** set up subnets on the ETCD server * * configure docker registry in kubernetes
Etcdctl set/coreos.com/network/config ' {"Network": "10.1.0.0/16"} '
Step 2:
Performing subnet segment settings on the ETCD server kubernetes application configuration
Etcdctl set/coreos.com/network/config ' {"Network": "10.1.0.0/16"} 'pod configuration kubernetes
Step 3:
Restart Docker Kubelet Kube-proxy
Source/run/flannel/subnet.env
Ifconfig Docker0 ${flannel_subnet}
Setsid Docker daemon--bip=${flannel_subnet}--MTU=${FLANNEL_MTU}--insecure-registry=192.168.161.117:5000-- Registry-mirror=https://0ai1grsq.mirror.aliyuncs.com >docker.log 2>&1&
./k8s.minion.sh
Interoperability Test host 117 and 73 both perform Docker pull CentOS #下载centos操作系统镜像 Docker run-it Centos/bin/bash #进行cent OS Docker container
117 host to perform Docker run-it centos/bin/bash, view IP address is 10.1.83.11 [ROOT@988112AECEFC/]# hostname-i
10.1.83.11
Perform ping10.1.59.5, test 59 network segment and 83 Network segment interoperability
117 host to perform Docker run-it centos/bin/bash, view IP address is 10.1.59.5
[root@07f9f64a0657/]# Hostname-i
10.1.59.5
Perform ping10.1.83.11, test 59 network segment and 83 Network segment interoperability