首页 > TAG信息列表 > Kubespray
使用 Kubespray 安装 Kubernetes
https://kubespray.io/#/ 1. 静态解析 cat >> /etc/hosts << EOF # deployment 192.168.4.13 vm-4-13 # k8s cluster 192.168.4.18 vm-4-18 192.168.4.19 vm-4-19 192.168.4.20 vm-4-20 192.168.4.21 vm-4-21 192.168.4.22 vm-4-22 192.168.4.23 vm-4-23 EOFkubespray的calico组件设置
Calico N.B. Version 2.6.5 upgrade to 3.1.1 is upgrading etcd store to etcdv3 If you create automated backups of etcdv2 please switch for creating etcdv3 backups, as kubernetes and calico now uses etcdv3 After migration you can check /tmp/calico_upgrade/kubespray部署kubernetes高可用集群
kubespray部署kubernetes高可用集群 Kubespray是Google开源的一个部署生产级别的Kubernetes服务器集群的项目,它整合了Ansible作为部署的工具。 可以部署在AWS,GCE,Azure,OpenStack,vSphere,Packet(Bare metal),Oracle Cloud Infrastructure(Experimental)或Baremetal上 高可用集群 可组CentOS7使用KubeSpray搭建单节点K8S集群
主机预部署 依据《CentOS7实验机模板搭建部署》克隆实验机kubespray 192.168.77.10 # 主机名和hosts解析 HOSTNAME=kubespray hostnamectl set-hostname "$HOSTNAME" echo "$HOSTNAME">/etc/hostname echo "$(grep -E '127|::1' /etc/hosts)">/etc/hosts ekubespray部署k8s
1.把部署好的集群的 calicoctl cni-plugins-linux-amd64-v0.8.1.tgz kubeadm-v1.16.3-amd64 kubectl-v1.16.3-amd64 kubelet-v1.16.3-amd64 拷到/usr/local/bin/ 2.修改yml文件 ./extra_playbooks/roles/download/tasks/prep_kubeadm_images.yml ./extra_playbooks/roles/kuber