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 Kubernetes Cluster V1.15.3 using Kubeadm

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

Share

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

How to use Kubeadm to deploy Kubernetes cluster V1.15.3, 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 built the cluster using the latest kubernetes v1.16.0, but we encountered problems due to the version. First, dashboard is not compatible with 1.16.0 Api, followed by flannel-cni. Re-deploy with stable version v1.15.3.

I. basic environment configuration

1. Prepare three virtual machines

Docker 192.168.100.10

Node01 192.168.100.11 kube-node01 master

Node01 192.168.100.12 kube-node02 minion

Node01 192.168.100.13 kube-node03 minion

two。 Configure the hosts file

Cat > > / etc/hosts/etc/rc.d/rc.local

Chmod + x / etc/rc.d/rc.local

Note: or disable swap on: edit / etc/fstab-- > comment out the swap partition

6. Turn off the selinux service

Temporary shutdown: setenforce 0 permanent shutdown: vi / etc/selinux/config

After changing SELINUX=enforcing to SELINUX=disabled, restart is required to take effect. The command is as follows:

Setenforce 0

Sed-I's etc/sysconfig/selinux SelinuxplenforcingAccording to SELINUXAfter

7. Configure iptable to manage ipv4/6 requests

Sudo echo "1" > / proc/sys/net/ipv4/ip_forward

Cat > / etc/sysctl.d/k8s.conf / 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