Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy a K8s cluster using kubeadmin

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to use kubeadmin to deploy K8s cluster, the content is very detailed, interested friends can refer to, hope to be helpful to you.

First, let's take a look at the overall architecture.

How to deploy K8s:

Deployment in yum mode

Binary packages: deploy manually using tar packages

Minikube: stand-alone version for development and testing.

Kubeadm: think of kubeadmin as a deployment tool that simplifies the deployment process for K8s.

(1) preparatory work

Install CentOS virtual machine, turn off firewall, SELinux, disable Swap

12345systemctl stop firewalld.servicesystemctl disable firewalld.serviceswapoff-ased-I'According 12345systemctl stop firewalld.servicesystemctl disable firewalld.serviceswapoff'/ etc/selinux/configsetenforce 0

Configure the hostname and host information for IP, and edit the / etc/hosts file for each node, as follows:

123192.168.79.111 master192.168.79.112 node1192.168.79.113 node2

All nodes install Docker. Here we use the image provided by Aliyun to quickly install

123456yum-y install wgetwget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo-O / etc/yum.repos.d/docker-ce.repo yum-y install docker-ce-18.06.1.ce-3.el7systemctl enable docker & & systemctl start dockerdocker-- version

Configure the mirror accelerator for Docker

12345678sudo mkdir-p / etc/dockersudo tee / etc/docker/daemon.json

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report