liyongjian5179 / k8s-ansible Goto Github PK
View Code? Open in Web Editor NEW利用 ansible 自动化安装 k8s高可用集群
利用 ansible 自动化安装 k8s高可用集群
安装在,kubelet 在1.18.8中提示的
我看到不少 task 里用了 connection: local
比如 https://github.com/liyongjian5179/k8s-ansible/blob/master/roles/master/tasks/genarate_kube_config.yml
这是否意味着这里面的每一 task 都只是在主控机上运行完全相同的命令重复三遍(如果有 master 三台机器的话?)
比如:
好像只是在主控机上三遍完全相同的动作(确保文件有那么一行),这个重复好像是不必要的。
etcd-3.4.yml.j2中,listen-peer-urls、listen-client-urls、advertise-client-urls和initial-advertise-peer-urls使用inventory_hostname初始化服务,导致服务无法正常启动,修改为使用eth0接口的ip地址后启动正常,将模板中配置值订正为ansible_eth0.ipv4.address
download_binary.sh脚本中kubernetes_version变量获取到的是etcd的版本号,导致k8s binary无法正常拉取,修改赋值语句为kubernetes_version=$(awk '/^kubernetes_version/ {print $2}' ./group_vars/all)后正常
--cni-conf-dir=/etc/cni/net.d
--cni-bin-dir={{ workdir }}/cni/bin
--root-dir={{ kubelet_storage_path }} \
在kubelet的配置中cni-bin-dir就是opt这个目录,calico默认就是这个目录,如果在修改了workdir这个变量为/data,这是kubelet中也就会变成--cni-bin-dir=/data/cni/bin,这样地址就不对了,所有就会报上面的错误,我找这个问题,找了好久啊,是别人帮我看到的,这个问题很关键啊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.