generated from edwardtheharris/ansible-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add join for remaining control planes
Closes #9
- Loading branch information
1 parent
5c0f9c0
commit 51976e6
Showing
7 changed files
with
57 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--- | ||
abstract: This is a collection of Ansible playbooks that will create a CA usable | ||
for Kubernetes and etcd clusters. | ||
abstract: >- | ||
This is a set of roles that will initialize a primary control plane, | ||
then join secondary and tertiary control planes to a HA k8s cluster. | ||
authors: | ||
- name: Xander Harris | ||
email: [email protected] | ||
date: 2024-03-08 | ||
title: Ansible Bare Metal K8S | ||
title: Ansible Bare Metal HA K8S | ||
--- | ||
|
||
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/edwardtheharris/ansible-kcp/ansible.yml?branch=main&style=flat-square&logo=ansible&label=Ansible%20Lint) | ||
|
@@ -24,7 +25,7 @@ title: Ansible Bare Metal K8S | |
### Roles | ||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
:maxdepth: 3 | ||
:caption: roles | ||
roles/index | ||
|
@@ -52,8 +53,17 @@ security | |
- [community.crypto.x509_certificate](https://docs.ansible.com/ansible/latest/collections/community/crypto/x509_certificate_module.html) | ||
- [How to create a small CA](https://docs.ansible.com/ansible/latest/collections/community/crypto/docsite/guide_ownca.html) | ||
|
||
## Indices and tables | ||
### Indices and tables | ||
|
||
- {ref}`genindex` | ||
- {ref}`modindex` | ||
- {ref}`search` | ||
|
||
### Glossary | ||
|
||
```{glossary} | ||
HA | ||
High Availability; in this context we mean specifically HA k8s clusters | ||
as described | ||
[here](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/). | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ authors: | |
- name: Xander Harris | ||
email: [email protected] | ||
date: 2024-07-23 | ||
title: Bare Metal k8s roles | ||
title: Bare Metal HA k8s roles | ||
--- | ||
|
||
## Roles | ||
|
@@ -20,5 +20,11 @@ join/index | |
reset/index | ||
``` | ||
|
||
```{index} roles init | ||
``` | ||
|
||
```{index} roles; join | ||
``` | ||
|
||
```{index} roles; reset | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
abstract: This is | ||
authors: Xander Harris | ||
date: 2024-03-01 | ||
title: Kubernetes Control Plane | ||
abstract: >- | ||
This role joins additional control planes to a high availability k8s | ||
cluster. | ||
authors: | ||
- name: Xander Harris | ||
email: [email protected] | ||
date: 2024-07-24 | ||
title: HA K8S Join Control Planes | ||
--- | ||
|
||
Presently only a single Control Plane cluster is supported, but support for | ||
high availability clusters will hopefully be available soon. | ||
|
||
[HA Clusters with Kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/) | ||
is helped with use of the tool | ||
[kube-vip](https://kube-vip.io/docs/installation/static/). | ||
|
@@ -20,7 +21,7 @@ A handy tool for switching k8s contexts is called | |
|
||
## Tasks | ||
|
||
```{literalinclude} /roles/init/tasks/main.yml | ||
```{literalinclude} /roles/join/tasks/main.yml | ||
:language: yaml | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters