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

Cisco Launches AppDynamics Cloud to Build Superior Digital Experiences

summary Cisco launches AppDynamics Cloud, a cloud...

5G and Wi-Fi 6, the next generation of infrastructure?

Cellular and Wi-Fi networks have come together to...

How NFV systems converge virtual network services at the edge

Think back to the days before smartphones, when p...

GitHub requires two-factor authentication for all accounts!

GitHub has announced that before 2023, all develo...

How 5G will impact telecom enterprise asset management

Digital transformation has had ripple effects on ...

6G, how should the communications industry tell an attractive story?

6G has come suddenly like a spring breeze. Recent...

Attention! Eight pitfalls in managing integrated cabling systems

After nearly 20 years of development, the integra...

How to protect data center power systems from winter threats

For many people, the cold winter months are upon ...

Crowd selection and data service practice based on MaxCompute + Hologres

Basic logical architecture of the crowd selection...

Is HTTP really that difficult?

HTTP is the most important and most used protocol...