集群部署架构 规划:
节点网络:192.168.1.0/24
Service网络:10.96.0.0/12
Pod网络:10.244.0.0/16
部署方法参考:https://github.com/kubernetes
kop方式:AWS (Amazon Web Services) and GCE (Google Cloud Platform) are currently officially supported
kubeadm方式:https://github.com/kubernetes/kubeadm
说明文档:https://github.com/kubernetes/kubeadm/blob/main/docs/design/design_v1.10.md
Kubernetes Cluster
环境
192.168.1.73 k8master
192.168.1.71 k8node1
192.168.1.72 k8node2
前提:
安装基础包(https://www.cnblogs.com/sunnyyangwang/p/8053098.html):yum install wget zip unzip rsync lrzsz vim-enhanced ntpdate tree lsof dstat net-tools -y
基于主机名通信:/etc/hosts
时间同步:ntpdate s1a.time.edu.cn
关闭firewalld和iptables:
安装配置步骤:
etcd cluster,仅master节点
fannel 集群所有节点
配置k8s的master:仅master节点,apiserver、scheduler、controller-manger
配置k8s的node节点,先启动docker,proxy,kubelet
kubeadm
master、nodes:安装kubelet、kubeadm、docker
master:kubeadm init
nodes: kubeadm join
各类源地址下载
docker源地址:
11
查看仓库包文件,
111
添加配置项:swap忽略
11
标签:03,Kubernetes,192.168,master,https,kubeadm,com,节点 From: https://www.cnblogs.com/sunnyyangwang/p/17537622.html