# Build a Kubernetes cluster using k3s via Ansible.
> This repository is now part of https://github.com/rancher/k3s official repo in contrib/ansible directory.
> Anyway I'll write updates in order to make PM in k3s.
> Be my guest and feel free to contribute.
## My blog post about these bunch of playbooks
Here is my post about [k3s and Ansible provisionning](https://www.it-wars.com/posts/cloud-native/kubernetes-avec-k3s-pour-sauver-la-planete/) (in French)
## K3s Ansible Playbook
Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running:
- [X] Debian 9
- [ ] Ubuntu 16.04
- [ ] CentOS 7
on processor architecture:
- [X] x64
- [X] arm64
- [X] armhf
## System requirements:
Deployment environment must have Ansible 2.4.0+
Master and nodes must have passwordless SSH access
## Usage
Add the system information gathered above into a file called hosts.ini. For example:
```
[master]
192.16.35.12
[node]
192.16.35.[10:11]
[kube_cluster:children]
master
node
```
Start provisioning of the cluster using the following command:
```
ansible-playbook site.yml
```
没有合适的资源?快使用搜索试试~ 我知道了~
k3s-ansible:Ansible手册,用于部署k3s kubernetes集群
共13个文件
yml:8个
j2:2个
md:1个
需积分: 48 4 下载量 19 浏览量
2021-01-31
04:38:40
上传
评论
收藏 8KB ZIP 举报
温馨提示
k3s-ansible:Ansible手册,用于部署k3s kubernetes集群
资源推荐
资源详情
资源评论
收起资源包目录
k3s-ansible-master.zip (13个子文件)
k3s-ansible-master
roles
raspbian
handlers
main.yml 41B
tasks
main.yml 300B
download
tasks
main.yml 1KB
k3s
node
tasks
main.yml 286B
templates
k3s.service.j2 373B
master
tasks
main.yml 1KB
templates
k3s.service.j2 362B
group_vars
all.yml 170B
ansible.cfg 244B
site.yml 292B
README.md 1KB
hosts.ini 105B
meta
main.yml 222B
共 13 条
- 1
资源评论
阔喵撩影
- 粉丝: 30
- 资源: 4662
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功