From 86236c61adc3b2a2e599bf615d012b5975b1edc9 Mon Sep 17 00:00:00 2001 From: ThomasCardin Date: Thu, 30 May 2024 09:06:18 -0400 Subject: [PATCH] update readme.md --- README.md | 8 +++--- docs/talos/cilium.md | 30 --------------------- docs/talos/talos-os.md | 61 ------------------------------------------ 3 files changed, 3 insertions(+), 96 deletions(-) delete mode 100644 docs/talos/cilium.md delete mode 100644 docs/talos/talos-os.md diff --git a/README.md b/README.md index d9e6d5b..df6c366 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,7 @@ -## Setup - -### Ansible +## Nodes setup using Ansible Create the cluster using Ansible: @@ -25,7 +23,7 @@ This command runs the k3s installation script with specific options to disable s ansible-playbook -i ansible/inventory ansible/playbook.yml --user= --ask-pass -vvv ``` -### Hardware +## Hardware specification | Hardware | Item Count | Link | | -------- | ------- | ------- | @@ -38,6 +36,6 @@ ansible-playbook -i ansible/inventory ansible/playbook.yml --user= -- | MikroTik hAP ax2 US Version | x1 | [Link](https://mikrotik.com/product/hap_ax2) | | MATX 2U Rackmount Server Chassis with 1x5.25 Front Bay / mATX/Mitx Support | x1 | [Link](https://www.amazon.ca/dp/B0B5CBW962?psc=1&ref=ppx_yo2ov_dt_b_product_details) | -## Dependencies +## Software dependencies within the kubernetes cluster See [this link](https://github.com/ThomasCardin/homelab/issues/1) \ No newline at end of file diff --git a/docs/talos/cilium.md b/docs/talos/cilium.md deleted file mode 100644 index 3f2eb11..0000000 --- a/docs/talos/cilium.md +++ /dev/null @@ -1,30 +0,0 @@ -# Cilium configuration for talos os - -## This includes - -- Hubble -- Ingress -- Gateway API -- The cilium way of metallb - -```bash -helm template cilium cilium/cilium \ - --version 1.15.0 \ - --namespace kube-system \ - --set ipam.mode=kubernetes \ - --set kubeProxyReplacement=strict \ - --set securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \ - --set securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \ - --set cgroup.autoMount.enabled=false \ - --set cgroup.hostRoot=/sys/fs/cgroup \ - --set hubble.relay.enabled=true \ - --set hubble.ui.enabled=true \ - --set k8sServiceHost=localhost \ - --set k8sServicePort=7445 \ - --set l2announcements.enabled=true \ - --set k8sClientRateLimit.qps=100 \ - --set k8sClientRateLimit.burst=200 \ - --set rollOutCiliumPods=true \ - --set operator.rollOutPods=true \ - --set gatewayAPI.enabled=true > values.yaml -``` \ No newline at end of file diff --git a/docs/talos/talos-os.md b/docs/talos/talos-os.md deleted file mode 100644 index 3a7d77b..0000000 --- a/docs/talos/talos-os.md +++ /dev/null @@ -1,61 +0,0 @@ -# Talos os configuration - -## Gen configuration specificaly fpr the Cilium CNI (install without any CNI and disable the kube-proxy) - -```bash -talosctl gen config \ - ninebasetwo-tpi-cluster https://192.168.2.231:6443 \ - --config-patch '[{"op": "add", "path": "/cluster/proxy", "value": {"disabled": true}}, {"op":"add", "path": "/cluster/network/cni", "value": {"name": "none"}}]' -o ninebasetwo-tpi-cluster-talos-config -``` - -## Join the control-plane to the cluster - -```bash -talosctl apply-config --insecure -e 192.168.2.231 -n 192.168.2.231 --file controlplane.yaml - -``` - -## Join the workers to the cluster - -```bash -talosctl apply-config --insecure -e 192.168.2.232 -n 192.168.2.232 --file worker.yaml -talosctl apply-config --insecure -e 192.168.2.233 -n 192.168.2.233 --file worker.yaml -talosctl apply-config --insecure -e 192.168.2.234 -n 192.168.2.234 --file worker.yaml -``` - -## Configure an endpoint - -```bash -talosctl config endpoints 192.168.2.231 -``` - -## Configure the nodes - -```bash -talosctl config nodes 192.168.2.231 -``` - -## Check the status - -```bash -talosctl dmesg -``` - -## Bootstrap kubernetes - -```bash -talosctl bootstrap --nodes 192.168.2.231 --endpoints 192.168.2.231 \ - --talosconfig=./talosconfig -``` - -## Download the kubeconfig - -```bash -talosctl kubeconfig --nodes 192.168.2.231 --endpoints 192.168.2.231 -``` - -# Patch a node - -```bash -talosctl patch --mode=no-reboot machineconfig -n --patch @.yaml -```