Flannel Configuration Kubernetes Network Interoperability Experiment

Source: Internet
Author: User
Tags centos docker run etcd k8s

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





























Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.