Skip to content
/ project-talos Public template

WIP project to provide Talos Linux example deployments and docs

Notifications You must be signed in to change notification settings

ac1dburnz/project-talos

Repository files navigation

project-talos

WIP project to provide Talos Linux example deployments and docs

Requirements

Masters

We build the masters using Raspberry Pi 4 nodes, these are cheap and relyable enough to function even production ready usecases. The only challenge is to use either extremely high relyability SD-cards. Part of this decision is the low cost of entry, while still offering ample performance, as these nodes will only run the kubernetes master services.

Part List:

3x Raspberry Pi 4 4gb | 75 USD each | 225 USD total 3x Raspberry Pi Charger | 11 USD each | 33 USD total 3x Raspberry pi case with fan and heatsinks | 15 USD each | 45 USD total 3x Sandisk Max Endurance 64Gb SD-Card | 23 USD each | 69 USD total

Grand total for 3 master nodes: 372 USD Total per node: 124 USD All inclusive

If you want to stick closer to Talos OS and Kubernetes official specification advice, you can opt to go for the Raspberry Pi 4 8gb with Sandisk Max Endurance 128gb (or external ssd) instead.

Workers

Generally every device with decent networking and some local storage can be deployed as worker. For this reason we've opted to append the Talos OS Configuration with as many of the optional drivers as possible.

Storage (TBD)

We've chosen to, by default, also use the Talos OS system disk as local storage target for LocalPV. At the same time, we will also use this disk for storing CEPH DB and WAL data for any mechanical harddrives used with Ceph.

This ensures users don't have to mess-around with selecting the right disks for storage and everything "just works" out-of-the-box The consequence of this, is that we have the following minimum system requirements for the Talos OS system disk for all workers:

  • Flash storage (or virtualised equivalent)
  • Minimum 256GB
  • Recommended 568GB
  • PowerLoss Protection(PLP) recommended, Required when using Ceph.

Networking

We advice a minimum of 1Gbe networking When using networked storage, we recommend 2.5Gbe networking instead to prevent storage bottlenecking communications

When using Ceph, however, we advice a minimum of 2.5Gbe networking and recommend 10Gbe networking to prevent issues with Ceph and containers fighting for bandwidth

Virtualised workers

Our default worker configuration ships with qemu guest additions installed already. However, to prevent issues with workers fighting for resources we would heavily advice against running multiple workers on the same host system. On top of that, we also would advice against running Ceph OSDs with virtualised nodes and keep those nodes limited to local-storage, networked storage using democratic-CSI or storage from other workers running Ceph.

Getting Started

Setting up requirements

windows

Please run this in a WSL Linux (Preferably Debian) shell instead of directly on windows. DO NOT use a GIT folder checked-out on windows, on the WSL. Ensure you git-clone or git-checkout the folder on WSL when using it in WSL!

Linux

  • We're assuming Git and Bash are already installed, if not: Ensure they are.
  • Install talosctl: curl -sL https://talos.dev/install | sh
  • Install fluxcli: brew install fluxcd/tap/flux
  • Install age: brew install age
  • Install SOPS: curl -LO https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 && mv sops-v3.8.1.linux.amd64 /usr/local/bin/sops && chmod +x /usr/local/bin/sops
  • Install talhelper: curl https://i.jpillora.com/budimanjojo/talhelper! | sudo bash

(TBD)

  • Install kubectl: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" (TBD)
  • Install velero cli: https://github.com/vmware-tanzu/velero/releases/download/v1.12.1/velero-v1.12.1-linux-amd64.tar.gz (TBD)

automatic (TBD)

  • Run sh clustertool.sh tool, and select to install dependencies

Preparations

  • Create a Github Private access token with wide access to your repositories
  • Make a copy of the repo template here, to your own github account using the big green button: https://github.com/truecharts/project-talos
  • Ensure your newly created clone(!) of the template repository is checked-out using GIT and you've cd'ed into this folder.
  • edit talenv.yaml and set the settings as you want them
  • edit talconfig.yaml and edit it to suit your cluster. We advice to keep the "worker" commented out, till your "controlplane" nodes are setup.
  • Set static DHCP adresses on your router to the IP adresses you defined in talconfig.yaml

Bootstrapping TalosOS on the cluster

  • Run sh clustertool.sh tool, generate cluster configuration
  • Boot all nodes from the TalosOS install media
  • Ensure all nodes have the IP adresses defined earlier
  • Run sh clustertool.sh tool, Bootstrap the TalosOS cluster
  • IMPORTANT: safe the (content of) age.agekey somewhere safe, this is the encryption key to your cluster!
  • Run sh clustertool.sh tool, Encrypt your configuration
  • Push your configuration to Github manually.

Bootstrapping FluxCD

  • Run sh clustertool.sh tool, decrypt your configuration
  • Run sh clustertool.sh tool, Bootstrap FluxCD on your newly created cluster

About

WIP project to provide Talos Linux example deployments and docs

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages