Kubernetes1.8.4安装指南 -- 1. 环境准备
生活随笔
收集整理的這篇文章主要介紹了
Kubernetes1.8.4安装指南 -- 1. 环境准备
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
環境說明
生產環境考慮到master的高可用性,至少2臺兩上,然后通過負載均衡訪問。
以下操作在每臺主機都要執行。
關閉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
安裝內核模塊,不然執行sysctl -p /etc/sysctl.d/k8s.conf會報錯 modprobe br_netfilter sysctl -p /etc/sysctl.d/k8s.conf ls /proc/sys/net/bridge
以下操作在每臺主機都要執行。
關閉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
安裝內核模塊,不然執行sysctl -p /etc/sysctl.d/k8s.conf會報錯 modprobe br_netfilter sysctl -p /etc/sysctl.d/k8s.conf ls /proc/sys/net/bridge
總結
以上是生活随笔為你收集整理的Kubernetes1.8.4安装指南 -- 1. 环境准备的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Containerd迎来1.0通用版本
- 下一篇: kubernetes1.8.4安装指南