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 k8s Cluster

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

Share

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

How to deploy K8s Cluster, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

We will deploy a three-node Kubernetes Cluster.

K8s-master is Master,k8s-node1 and k8s-node2 is Node.

The operating system of all nodes is Ubuntu 16.04. of course, other Linux is also possible.

Note: almost all the installation components and Docker images of Kubernetes are placed on goolge's own website, which may be a big obstacle for domestic students. The advice is: you must find a way to overcome the network obstacles, otherwise you can't even enter the Kubernetes door.

Install Docker

All nodes need to have Docker installed.

Apt-get update & & apt-get install docker.io installs kubelet, kubeadm and kubectl

Install kubelet, kubeadm, and kubectl on all nodes.

Kubelet runs on all nodes of Cluster and is responsible for starting Pod and containers.

Kubeadm is used to initialize Cluster.

Kubectl is a Kubernetes command line tool. Through kubectl, you can deploy and manage applications, view various resources, create, delete, and update various components.

Apt-get update & & apt-get install-y apt-transport-httpscurl-s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add-cat > ~ / .bashrc

This allows ubuntu users to use kubectl.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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