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

The method of installing kubernetes1.12.1 under kubeadm

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

Share

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

This article mainly introduces "the method of installing kubernetes1.12.1 under kubeadm". In the daily operation, I believe that many people have doubts about the method of installing kubernetes1.12.1 under kubeadm. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to install kubernetes1.12.1 under kubeadm". Next, please follow the editor to study!

Prepare the environment server

Server condition:

IP system version role Hostname10.20.13.24Centos7 64-bit minimalmasterkuber2410.20.13.25Centos7 64-bit minimalworkKuber2510.20.13.26Centos7 64-bit minimalworkKuber2610.20.13.27Centos7 64-bit minimalworkKuber27 modify host

Ansible script, hostname = kuber [the last number in dotted decimal]:

-hosts: K8 remote_user: root tasks:-name: origin hostname command: hostname-name: server ip shell: ip a-hostname: name=kuber {{ansible_default_ipv4.address.split ('.) [- 1]}} close firewall

Linux command:

Service firewalld stopsystemctl disable firewalld

Ansible playbook

-hosts: K8 remote_user: root tasks:-name: stop firewalld systemd: name=firewalld enabled=false state=stopped-name: check firewalld status shell: service firewalld status closes the swap partition

Linux command:

Swappoff-ased-I'sUnip. Etc/fstab swap.pickswap.pickswap.Candle / etc/fstab

Ansible playbook

-hosts: K8 remote_user: root tasks:-name: close swap shell: swapoff-a & & sed-I's Unip.

Linux command:

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