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

Former NASA chief joins satellite internet company Viasat

According to foreign media, former NASA administr...

In the interview, I was asked how the reliability of TCP is guaranteed?

We know that TCP is reliable. Our previous articl...

Data Center Container Network Technology

Container technology is very popular and often me...

Google open-sources network-opt for optimizing network topology

The Internet has become the most important issue ...

Improving operational efficiency of cloud NFV infrastructure

Mobile data traffic will grow more than 10 times ...

It’s 2022, why are there still so many network failures?

Failures happen every year, but this year they ha...

10gbiz: Hong Kong CN2 GIA/Los Angeles CN2 GIA line VPS 60% off $2.75/month

10gbiz has released a current promotion, with 40%...

5G Ready: Enabling Technology to Prepare for the Future of Work

5G opens the door to major technological advances...