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

Build K8S cluster: kubernetes-1.11.3

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

Share

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

Build K8S cluster kubernetes 1.11.3

1.1 Lab Architecture:

Kubernetes architecture

Node1: master 10.192.44.129

Node2: node2 10.192.44.127

Node3: node3 10.192.44.126

Etcd architecture

Node1: master 10.192.44.129

Node2: node 10.192.44.127

Node3: node 10.192.44.126

Harbor server

Redhat128.example.com

10.192.44.128

two。 Installation

2.1 configure system-related parameters (each):

2.1.1 temporarily disable selinux

Sed-I's impulse SELINUX automatically perpendicular to SELINUX.SELINUXPROUXPROPERATIVE etc/sysconfig/selinux

Setenforce 0

2.1.2 temporarily close swap, permanently close swap lines in direct comment fstab

Swapoff-a

2.1.3 enable forward

Iptables-P FORWARD ACCEPT

2.1.3 configure forwarding-related parameters, otherwise errors may occur

Cat config.json

Cfssl print-defaults csr > csr.json

# create the following ca-config.json file according to the format of config.json file

# Expiration time is set to 87600h

Cat > ca-config.json / etc/kubernetes/controller-manager / etc/kubernetes/scheduler > ~ / .bashrc

Source / .bashrc

7. Install the flannel network plug-in

7.1Configuring flannel through yum installation (per node)

Yum install-y flannel

7.2 configure service file (per node)

Cat > / usr/lib/systemd/system/flanneld.service / etc/sysconfig/flanneld / usr/lib/systemd/system/kubelet.service / usr/lib/systemd/system/kube-proxy.service / etc/kubernetes/config busyboxdeploy.yaml

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