Kubernetes1.8.4安装指南 -- 1. 环境准备
生活随笔
收集整理的這篇文章主要介紹了
Kubernetes1.8.4安装指南 -- 1. 环境准备
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
環(huán)境說(shuō)明
生產(chǎn)環(huán)境考慮到master的高可用性,至少2臺(tái)兩上,然后通過(guò)負(fù)載均衡訪問(wèn)。
以下操作在每臺(tái)主機(jī)都要執(zhí)行。
關(guān)閉selinux vim /etc/selinux/config SELINUX=disabled
停止防火墻 systemctl stop firewalld systemctl disable firewalld
編輯/etc/hosts 10.0.0.210 node210 10.0.0.211 node211 10.0.0.212 node212
編輯/etc/sysctl.d/k8s.conf net.ipv4.ip_forward = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1
安裝內(nèi)核模塊,不然執(zhí)行sysctl -p /etc/sysctl.d/k8s.conf會(huì)報(bào)錯(cuò) modprobe br_netfilter sysctl -p /etc/sysctl.d/k8s.conf ls /proc/sys/net/bridge
以下操作在每臺(tái)主機(jī)都要執(zhí)行。
關(guān)閉selinux vim /etc/selinux/config SELINUX=disabled
停止防火墻 systemctl stop firewalld systemctl disable firewalld
編輯/etc/hosts 10.0.0.210 node210 10.0.0.211 node211 10.0.0.212 node212
編輯/etc/sysctl.d/k8s.conf net.ipv4.ip_forward = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1
安裝內(nèi)核模塊,不然執(zhí)行sysctl -p /etc/sysctl.d/k8s.conf會(huì)報(bào)錯(cuò) modprobe br_netfilter sysctl -p /etc/sysctl.d/k8s.conf ls /proc/sys/net/bridge
總結(jié)
以上是生活随笔為你收集整理的Kubernetes1.8.4安装指南 -- 1. 环境准备的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Containerd迎来1.0通用版本
- 下一篇: kubernetes1.8.4安装指南