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

Construction of Kubernetes Cluster (part I)

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

Share

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

I wonder how much you know about Kubernetes? If you still have some understanding, I suggest you read this article, which may be of some help to you!

To read this article, you need to have the following knowledge points:

1.Kubernetes2.kubeadm3.docker

If you all know the above three points, please enjoy yourself. if you don't know much about it, please watch Baidu by yourself. if you don't know much, the editor's ability is limited. If there are any mistakes or omissions in the article, please spray them lightly. Thank you for disrespect.

Because the process of writing GFW this article is a little bumpy, but the problem is not big, if you are interested, you can follow the article, maybe you will find a new world, of course, your journey will be much better than before I wrote the article, because I have already leveled this big pit for you, nonsense, start the text ~

I. preparatory work

The best way to build a cluster is to buy a few CVMs, which are very comfortable to build, of course, if funds permit! If you don't have enough money, just build a virtual machine like me.

Because it is a virtual machine, the performance of the computer is average, I build here is a single node, please know ~

Basic environment

The following are the environmental requirements of my experiment

2-core 2G server 20g disk centos7 server interworking between intranets can access the Internet scientifically

One more thing here, before the deployment of this thing, my server can access the Internet scientifically, and the deployment process is simply not too smooth. However, in order to show you, I specially wrote an article about the general use of the domestic environment, and the process is quite difficult.

II. Start deployment

For convenience, the following operations are performed under the root user

1. Equipped with yum source

What I use here is Aliyun's yum source to back up the previous one before configuring the yum source.

Root@localhost ~] # cd / etc/yum.repos.d/ [root@localhost yum.repos.d] # ll total consumption is 32m / r / r. 1 root root 1664 September 5 21:05 CentOS-Base.repo-rw-r--r--. 1 root root 1309 September 5 21:05 CentOS-CR.repo-rw-r--r--. 1 root root 649 September 5 21:05 CentOS-Debuginfo.repo-rw-r--r--. 1 root root 314 September 5 21:05 CentOS-fasttrack.repo-rw-r--r--. 1 root root 630 September 5 21:05 CentOS-Media.repo-rw-r--r--. 1 root root 1331 September 5 21:05 CentOS-Sources.repo-rw-r--r--. 1 root root 6639 September 5 21:05 CentOS-Vault.repo [root@localhost yum.repos.d] # mkdir bak [root@localhost yum.repos.d] # mv * bakmv: the directory "bak" cannot be moved to its own subdirectory "bak/bak" under [root@localhost yum.repos.d] # ll Total usage 0drwxr-xr-x. 2 root root 187January 10 11:17 bak

Configure yum Feed

[root@localhost yum.repos.d] # curl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo% Total% Received% Xferd Average Speed Time Current Dload Upload Total Spent Left Speed100 2523 2523 00 23632 0 -::-23801

Configure kubernetes Feed

Cat

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