Skip to content

use ansible deploy k8s,用ansible一键安装kubernetes高可用集群

Notifications You must be signed in to change notification settings

onesafe/ansible_deploy_k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用ansible部署kubernetes

Dashboard

Dashboard

依赖

  • ansible 2.8.5
  • python 2.7 (jinja2, PyYAML)

前提条件(修改下面文件的主机名和IP)

  • inventory/hosts
  • inventory/group_vars/all/all.yml

部署集群 (v1.16.5版本的kubernetes)

ansible-playbook -i inventory/hosts playbooks/site.yml

查看集群服务状态

ansible-playbook -i inventory/hosts playbooks/site.yml --tags "status"

清理集群

在同一套环境里面部署多次的话,可以先清理集群

ansible-playbook -i inventory/hosts playbooks/clean.yml

升级内核 (Centos7 自带的内核使用k8s有一些bug)

ansible-playbook -i inventory/hosts playbooks/kernel.yml

About

use ansible deploy k8s,用ansible一键安装kubernetes高可用集群

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published