Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
edwardtheharris committed Jul 25, 2024
1 parent 057cd8e commit 5342d28
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
10 changes: 8 additions & 2 deletions roles/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,20 @@ the way to use these roles is this.
ansible-playbook -t join site.yml
```

4. Copy your updated {term}`kubeconfig` from the init role's file folder to
4. Enable Kube-VIP on the control planes.

```{code-block} shell
ansible-playbook -t kv site.yml
```

5. Copy your updated {term}`kubeconfig` from the init role's file folder to
the appropriate directory.

```{code-block} shell
cp roles/init/files/admin.conf $HOME/.kube/config
```

5. Verify that your connection works and the cluster is up.
6. Verify that your connection works and the cluster is up.

```{code-block} shell
kubectl get nodes
Expand Down
5 changes: 2 additions & 3 deletions roles/kv/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ which is best for bare metal deployments.

## Tasks

The role uses {term}`kubeadm` to handle the initialization of the primary
control plane.
This role enables {term}`kube-vip` for cluster networking.

```{literalinclude} /roles/init/tasks/main.yml
```{literalinclude} /roles/kv/tasks/main.yml
:language: yaml
```

Expand Down
1 change: 1 addition & 0 deletions roles/kv/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: Ensure manifests directory
ansible.builtin.file:
state: directory
Expand Down
3 changes: 3 additions & 0 deletions roles/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ title: Reset Cluster

## Reset Role Usage

This role should generally be executed first to attempt to create a fresh
environment.

```{literalinclude} /roles/reset/tasks/main.yml
:language: yaml
```
Expand Down
8 changes: 8 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@
ansible.builtin.file:
dest: /root/reset.md
state: absent
- name: Stop containerd
ansible.builtin.service:
state: stopped
name: containerd
- name: Start containerd
ansible.builtin.service:
state: started
name: containerd

0 comments on commit 5342d28

Please sign in to comment.