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

Detailed tutorials for installing Kubernetes

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "detailed tutorials for installing Kubernetes". In daily operation, I believe many people have doubts about the detailed tutorials of installing Kubernetes. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "detailed tutorials for installing Kubernetes". Next, please follow the editor to study!

What is the function of Kubernetes,Kubernetes?

Kubernetes is mainly used to manage Docker clusters, and it is very convenient to manage Docker on multiple VPS nodes (in the form of Pod). And Docker is a very convenient application deployment tool. Bricklayers currently use KVM to install all VPS, so it is also a good choice to deploy some applications through Docker. For example, you can use Docker to deploy LNMP. You can also package your own containers and upload them to Dockerhub for your own or others' use. The LoadBalancer function of Kubernetes can easily achieve load balancing among multiple VPS, and it can easily deploy and manage applications on multiple VPS.

Second, the steps of installing Kubernetes in VPS.

1. Install Docker CE: install using repository

Install the package:

Sudo yum install-y yum-utils\

Device-mapper-persistent-data\

Lvm2

Add a stable version of the Docker source:

Sudo yum-config-manager\

-- add-repo\

Https://download.docker.com/linux/centos/docker-ce.repo

Install Docker CE:

Sudo yum install docker-ce

Will prompt you to Is this OK? Enter y and enter. After that, you will be prompted to confirm the fingerprint information again to see if it is 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35 (case-insensitive). If so, enter y again and enter, which is generally no problem.

[optional] if you want to install the specified version of Docker CE, list all Docker CE versions first:

Yum list docker-ce-- showduplicates | sort-r

Then specify the version number during installation (for example, docker-ce-18.03.0.ce, replace the following VERSION STRING with the version number to be installed):

Sudo yum install docker-ce-

After the installation is complete, start Docker:

Sudo systemctl start docker

Run Hello World Docker:

Sudo docker run hello-world

2. Install Kubernetes

Installation steps:

Ubuntu / Debian:

Apt-get update & & apt-get install-y apt-transport-https curl curl-s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add-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