kubeadmin安装k8s |
您所在的位置:网站首页 › kubeadmin安装 › kubeadmin安装k8s |
看完本篇能学到的知识点
k8s集群的安装
k8s的 kubectl 常用命令的使用
k8s发布一个简单的应用
k8s的应用网络访问三种方式
安装过程中遇到的问题
组件controller-manager与scheduler状态为Unhealthy处理
image.jpeg
image.jpeg
改完重启 systemctl restart kubelet [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1[ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1 解决: echo '1' > /proc/sys/net/ipv4/ip_forward echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables 硬件要求 x86-64 processor 2CPU 2GB RAM 10GB free disk space RedHat Enterprise Linux 7.x+, CentOS 7.x+, Ubuntu 16.04+, or Debian 9.x+来自 ; 实验环境| 主机名 | IP | 角色 | 操作系统 | CPU/MEM | | master | 192.168.118.20 | Master | CentOS7 | 2core/2GB | | node1 | 192.168.118.21 | node1 | CentOS7 | 2core/2GB | | node2 | 192.168.118.22 | node2 | CentOS7 | 2core/2GB | 安装步骤 一、 环境预设(在所有主机上操作) 1.1、关闭firewalld systemctl stop firewalld; systemctl disable firewalld 1.2、关闭SElinux setenforce 0; sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config 1.3、关闭Swap swapoff -a; sed -i "s/\/dev\/mapper\/centos-swap/\#\/dev\/mapper\/centos-swap/g" /etc/fstab 如果不想关闭swap,可以跳过检查 vim /etc/sysconfig/kubelet KUBELET_EXTRA_ARGS="--fail-swap-on=false" 在初始化时加入参数--ignore-preflight-errors=Swap 1.4、使用阿里云yum源: wget -O /etc/yum.repos.d/CentOS7-Aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo 1.5、修改内核参数 [root@master ~]# cat |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |