Kubesphere deploys Kubernetes using external IP

Kubesphere deploys Kubernetes using external IP

Our company has always had the need to connect all the cloud servers we currently manage. We have not been able to make an overall cluster and manage it with Kubernetes. Today, after modifying the original network model and performing relevant configuration on the server, we have finally connected all servers that can only be accessed through external network IP.

We have deployed Kubernetes using the Calico network model. After deployment, we found that all servers need to be connected through a virtual network before they can be connected together. As a unified distributed server, this has caused a relatively large limitation on the expansion of our servers. So we changed the default network model of kubesphere to flannel. Each deployment takes a long time, and basically each node cannot communicate directly with each other. After looking for information, we modified the network configuration in the server:

First, add a virtual network card to all servers and bind the external IP to this virtual network card. Note that it is best to add :1 to the current active network card to indicate that it is the configuration information on the current network card.

 cat > / etc / sysconfig / network - scripts / ifcfg - eth0 : 1 << EOF
BOOTPROTO = static
DEVICE = eth0 : 1
IPADDR = your public IP
PREFIX = 32
TYPE = Ethernet
USERCTL = no
ONBOOT = yes
EOF

After restarting, use ip addr to check whether it has taken effect. If it has taken effect, you can use kubesphere to install multiple nodes. Also note that the node address and master address in config.yaml both use the external network IP.

<<:  Let’s talk about protocols and hard drives in the Web3 world: IPFS

>>:  RabbitMQ communication model work model

Recommend

Hot Topic | Why is the United States determined to "kill" Huawei?

"After reading the 20,000-word interview wit...

Easy-to-understand illustrated network knowledge - Part 2

Continuing from the previous article "​​Easy...

DesiVPS: San Jose VPS starts at $18.99 per year, 1GB/25GB/1Gbps unlimited data

DesiVPS previously provided VPS hosts in Los Ange...

MU-MIMO technology: the key to turning slow networks into lightning-fast ones

In recent years, with the rapid development of wi...

Benefits of Fiber Optic Networks: Learn What It Is and Why It Matters

As streaming, remote work, and online education t...

How to eliminate 5G network blind spots in rural areas?

The vast rural areas are also a key link in the c...

Ma Xiaofang from Xunlei: I yearn for a manager who is like a "stabilizing force"

[51CTO.com original article] In order to pay trib...

What are the similarities between social concepts and the SDN model?

The social principle seems to have a strange conn...

How to fill every corner of the room with Wi-Fi?

Nowadays, in a large living environment, there ar...

Star Domain CDN won the 2016 "Most Trustworthy CDN Solution Award"

[Original article from 51CTO.com] Recently, Star ...

GSA report: 63 operators around the world have launched commercial 5G services

The latest global 5G network development report f...