Skip to content

DemoLiang/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible

ansible for setup project

setup roles/k8s

roles k8s 主要是想做成自动部署k8s集群的

环境:

节点 hostname ip
master node1
work node2
work node3

#mac 安装sshpass 由于mac上使用带密码的形式跑ansilbe会报错,需要安装sshpass,mac上安装方式如下 linux 应该可以直接yum install -y sshpass就可以 export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb

docker 安装注意修改/etc/sysconfig/docker 里面selinux 否则会导致coredns一直起不来,查了半天

参考: https://www.codeleading.com/article/3793254298/

About

ansible for setup project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published