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

How to identify fiber link problems?

Methods for Identifying Fiber Link Problems There...

Three major risks and countermeasures for data center migration

Data center migration is a complex undertaking th...

Improving 4G resident ratio by adjusting RSRQ measurement parameters

Today, when mobile Internet 4G communication has ...

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

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

One cannot miss the key points of future data center development

Where will the data center of the future go? I be...

Today, China’s 5G is two years old!

On October 31, 2019, the first day of the 28th Ch...

How to design a small company network with more than 200 people

[[421158]] Project Requirements XX small company ...

Can't tell the difference between Wi-Fi and WLAN? Stop confusing them

Usually, we connect to WiFi when we surf the Inte...

Huawei wins "2018 GSMA Mobile Industry Outstanding Contribution Award"

At a special ceremony held last night, GSMA prese...