Navigation Menu

Skip to content

Commit

Permalink
Merge pull request k3s-io#1787 from St0rmingBr4in/move-contrib-ansible
Browse files Browse the repository at this point in the history
contrib/ansible: Remove duplication and redirect to new repository
  • Loading branch information
erikwilson committed May 12, 2020
2 parents 773b8be + 55cca7b commit 689c272
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 370 deletions.
53 changes: 1 addition & 52 deletions contrib/ansible/README.md
@@ -1,54 +1,3 @@
# 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:

- [X] Debian
- [ ] Ubuntu
- [X] CentOS

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:

```bash
[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:

```bash
ansible-playbook site.yml -i inventory/hosts.ini
```

## Kubeconfig

To get access to your **Kubernetes** cluster just

```bash
scp debian@master_pi:~/.kube/config ~/.kube/config
```

The ansible playbook was moved to https://github.com/rancher/k3s-ansible
11 changes: 0 additions & 11 deletions contrib/ansible/ansible.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions contrib/ansible/inventory/group_vars/all.yml

This file was deleted.

12 changes: 0 additions & 12 deletions contrib/ansible/inventory/hosts.ini

This file was deleted.

7 changes: 0 additions & 7 deletions contrib/ansible/reset.yml

This file was deleted.

38 changes: 0 additions & 38 deletions contrib/ansible/roles/download/tasks/main.yml

This file was deleted.

75 changes: 0 additions & 75 deletions contrib/ansible/roles/k3s/master/tasks/main.yml

This file was deleted.

24 changes: 0 additions & 24 deletions contrib/ansible/roles/k3s/master/templates/k3s.service.j2

This file was deleted.

16 changes: 0 additions & 16 deletions contrib/ansible/roles/k3s/node/tasks/main.yml

This file was deleted.

24 changes: 0 additions & 24 deletions contrib/ansible/roles/k3s/node/templates/k3s.service.j2

This file was deleted.

35 changes: 0 additions & 35 deletions contrib/ansible/roles/prereq/tasks/main.yml

This file was deleted.

24 changes: 0 additions & 24 deletions contrib/ansible/roles/raspbian/tasks/main.yml

This file was deleted.

25 changes: 0 additions & 25 deletions contrib/ansible/roles/reset/tasks/main.yml

This file was deleted.

22 changes: 0 additions & 22 deletions contrib/ansible/site.yml

This file was deleted.

0 comments on commit 689c272

Please sign in to comment.