mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
df10b51c910f55cb9b334e8d66a12e9b3c46b001
When k3s is installed on an OS with default high ulimits, performance issues can be observed. This was discovered on CoreOS where the default value is 1073741816. Symptoms include very slow file operations such as installing a Rook/Ceph cluster will take ~6 hours instead of ~10 minutes. A google search for 'container LimitNOFILE' will show that most major projects set this already, including the (unused) containerd systemd unit found in this repository at /vendor/github.com/containerd/containerd/containerd.service k3OS is not affected becuasse the default there is already 1048576. See description in coreos/fedora-coreos-tracker#329
Build a Kubernetes cluster using k3s via Ansible
Author: https://github.com/itwars
K3s Ansible Playbook
Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running:
- Debian
- [ ] Ubuntu
- CentOS
on processor architecture:
- x64
- arm64
- 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]
[k3s-cluster:children]
master
node
Start provisioning of the cluster using the following command:
ansible-playbook site.yml -i inventory/hosts.ini
Kubeconfig
To get access to your Kubernetes cluster just
scp debian@master_pi:~/kube/config ~/.kube/config
Description
Languages
YAML
93.3%
Jinja
6.7%