You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add mention of other projects
* Add gitattributes to fix language reporting in GH
* Add debug playbook to gitignore
* Add more info around what this project will not cover
* Remove construction label, reword
Signed-off-by: Derek Nola <[email protected]>
Current Maintainer: <https://github.com/dereknola>
6
5
7
-
## K3s Ansible Playbook
8
-
9
-
Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running:
6
+
Easily bring up a cluster on machines running:
10
7
11
8
-[X] Debian
12
9
-[X] Ubuntu
13
-
-[X] CentOS
10
+
-[X] Raspberry Pi OS
11
+
-[X] RHEL Family (CentOS, Redhat, Rocky Linux...)
12
+
-[X] SUSE Family (SLES, OpenSUSE Leap, Tumbleweed...)
14
13
-[X] ArchLinux
15
14
16
-
on processor architecture:
15
+
on processor architectures:
17
16
18
17
-[X] x64
19
18
-[X] arm64
20
19
-[X] armhf
21
20
22
21
## System requirements
23
22
24
-
Deployment environment must have Ansible 2.4.0+
23
+
The control node must have Ansible 2.10.0+
25
24
26
-
All nodes in inventory must have:
25
+
All managed nodes in inventory must have:
27
26
- Passwordless SSH access
28
27
- Root access (or a user with equivalent permissions)
29
28
30
-
It is also recommended that all nodes disable firewalls and swap. See [K3s Requirements](https://docs.k3s.io/installation/requirements) for more information.
29
+
It is also recommended that all managed nodes disable firewalls and swap. See [K3s Requirements](https://docs.k3s.io/installation/requirements) for more information.
31
30
32
31
## Usage
33
32
@@ -55,7 +54,8 @@ If needed, you can also edit `vars` section at the bottom to match your environm
55
54
If multiple hosts are in the server group the playbook will automatically setup k3s in HA mode with embedded etcd.
56
55
An odd number of server nodes is required (3,5,7). Read the offical documentation below for more information and options.
A playbook is provided to upgrade k3s on all nodes in the cluster. To use it, update `k3s_version` with the desired version in `inventory.yml` and run:
69
+
A playbook is provided to upgrade K3s on all nodes in the cluster. To use it, update `k3s_version` with the desired version in `inventory.yml` and run:
After successful bringup, the kubeconfig of the cluster is copied to the control-node and set as default (`~/.kube/config`).
78
+
After successful bringup, the kubeconfig of the cluster is copied to the controlnode and set as default (`~/.kube/config`).
79
79
Assuming you have [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) installed, you to confirm access to your **Kubernetes** cluster use the following:
80
80
81
81
```bash
@@ -84,10 +84,25 @@ kubectl get nodes
84
84
85
85
## Local Testing
86
86
87
-
A Vagrantfile is provided that provision a 5 nodes cluster using LibVirt or Virtualbox and Vagrant. To use it:
87
+
A Vagrantfile is provided that provision a 5 nodes cluster using Vagrant (LibVirt or Virtualbox as provider). To use it:
88
88
89
89
```bash
90
90
vagrant up
91
91
```
92
92
93
-
By default, each node is given 2 cores and 2GB of RAM and runs Ubuntu 20.04. You can customize these settings by editing the `Vagrantfile`.
93
+
By default, each node is given 2 cores and 2GB of RAM and runs Ubuntu 20.04. You can customize these settings by editing the `Vagrantfile`.
94
+
95
+
## Need More Features?
96
+
97
+
This project is intended to provide a "vanilla" K3s install. If you need more features, such as:
0 commit comments