加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
k8s_deploy.yaml 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
山河已无恙 提交于 2023-02-05 23:52 . init
# ansible 2.9.27
# # config file = /root/ansible/ansible.cfg
# # configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
# # ansible python module location = /usr/lib/python2.7/site-packages/ansible
# # executable location = /usr/bin/ansible
# # python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
#
# #@File : k8s_deploy.yaml
# #@Time : 2023/01/19 23:02:47
# #@Author : Li Ruilong
# #@Version : 1.0
# #@Desc : k8s 安装剧本
# #@Contact : liruilonger@gmail.com
---
- name: k8s deploy 1
hosts: k8s
tasks:
# 初始化 K8s 安装环境
- name: init k8s
include_tasks:
file: k8s_init_deploy.yaml
tags:
- init_k8s
# 安装 CRI docker ,cri-docker
- name: CRI deploy (docker,cri-docker)
include_tasks:
file: k8s_cri_deploy.yaml
tags: cri
# 安装 kubeadm,kubelet,kubectl
- name: install kubeadm,kubelet,kubectl
include_tasks:
file: k8s_kubeadm_kubelet_kubectl_deploy.yaml
tags: install_k8s
- name: k8s deploy 2
hosts: k8s_master
tasks:
- name: manifests_keepalived_haproxy.yaml
include_tasks:
file: manifests_keepalived_haproxy.yaml
tags: install_k8s
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化