diff options
| -rw-r--r-- | about/resources.gmi | 210 | ||||
| -rw-r--r-- | gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi | 34 | ||||
| -rw-r--r-- | gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi.tpl | 33 | ||||
| -rw-r--r-- | gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi | 34 | ||||
| -rw-r--r-- | gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi.tpl | 33 | ||||
| -rw-r--r-- | gemfeed/DRAFT-f3s-kubernetes-with-freebsd-part-X.gmi | 1116 | ||||
| -rw-r--r-- | gemfeed/DRAFT-f3s-kubernetes-with-freebsd-part-X.gmi.tpl | 85 | ||||
| -rw-r--r-- | gemfeed/atom.xml | 82 | ||||
| -rw-r--r-- | index.gmi | 2 | ||||
| -rw-r--r-- | uptime-stats.gmi | 2 |
10 files changed, 1433 insertions, 198 deletions
diff --git a/about/resources.gmi b/about/resources.gmi index b5870dde..94d98cd5 100644 --- a/about/resources.gmi +++ b/about/resources.gmi @@ -35,110 +35,110 @@ You won't find any links on this site because, over time, the links will break. In random order: -* Polished Ruby Programming; Jeremy Evans; Packt Publishing +* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible +* 100 Go Mistakes and How to Avoid Them; Teiva Harsanyi; Manning Publications +* Raku Recipes; J.J. Merelo; Apress +* Perl New Features; Joshua McAdams, brian d foy; Perl School +* 97 things every SRE should know; Emil Stolarsky, Jaime Woo; O'Reilly +* The Pragmatic Programmer; David Thomas; Addison-Wesley +* The Go Programming Language; Alan A. A. Donovan; Addison-Wesley Professional +* Systems Performance Tuning; Gian-Paolo D. Musumeci and others...; O'Reilly +* 21st Century C: C Tips from the New School; Ben Klemens; O'Reilly +* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton +* Terraform Cookbook; Mikael Krief; Packt Publishing +* The Docker Book; James Turnbull; Kindle * Seeking SRE: Conversations About Running Production Systems at Scale; David N. Blank-Edelman; eBook -* Concurrency in Go; Katherine Cox-Buday; O'Reilly -* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner -* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson -* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress +* Chaos Engineering - System Resiliency in Practice; Casey Rosenthal and Nora Jones; eBook * Effective Java; Joshua Bloch; Addison-Wesley Professional -* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly -* Site Reliability Engineering; How Google runs production systems; O'Reilly -* Data Science at the Command Line; Jeroen Janssens; O'Reilly +* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly +* Effective awk programming; Arnold Robbins; O'Reilly +* Learn You Some Erlang for Great Good; Fred Herbert; No Starch Press +* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook +* Funktionale Programmierung; Peter Pepper; Springer * Tmux 2: Productive Mouse-free Development; Brain P. Hogan; The Pragmatic Programmers -* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible -* Ultimate Go Notebook; Bill Kennedy -* The Go Programming Language; Alan A. A. Donovan; Addison-Wesley Professional -* DNS and BIND; Cricket Liu; O'Reilly -* Modern Perl; Chromatic ; Onyx Neon Press -* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly * Pro Puppet; James Turnbull, Jeffrey McCune; Apress -* Raku Recipes; J.J. Merelo; Apress -* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt -* Learn You Some Erlang for Great Good; Fred Herbert; No Starch Press -* The Docker Book; James Turnbull; Kindle +* Polished Ruby Programming; Jeremy Evans; Packt Publishing * Developing Games in Java; David Brackeen and others...; New Riders -* Higher Order Perl; Mark Dominus; Morgan Kaufmann -* 97 things every SRE should know; Emil Stolarsky, Jaime Woo; O'Reilly +* Ultimate Go Notebook; Bill Kennedy * Programming Ruby 3.3 (5th Edition); Noel Rappin, with Dave Thomas; The Pragmatic Bookshelf -* Terraform Cookbook; Mikael Krief; Packt Publishing -* Chaos Engineering - System Resiliency in Practice; Casey Rosenthal and Nora Jones; eBook * Go Brain Teasers - Exercise Your Mind; Miki Tebeka; The Pragmatic Programmers -* Leanring eBPF; Liz Rice; O'Reilly +* Systemprogrammierung in Go; Frank Müller; dpunkt +* Data Science at the Command Line; Jeroen Janssens; O'Reilly * C++ Programming Language; Bjarne Stroustrup; -* Systems Performance Tuning; Gian-Paolo D. Musumeci and others...; O'Reilly -* Java ist auch eine Insel; Christian Ullenboom; -* The Pragmatic Programmer; David Thomas; Addison-Wesley -* 21st Century C: C Tips from the New School; Ben Klemens; O'Reilly -* Funktionale Programmierung; Peter Pepper; Springer -* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly -* The DevOps Handbook; Gene Kim, Jez Humble, Patrick Debois, John Willis; Audible +* Site Reliability Engineering; How Google runs production systems; O'Reilly +* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt * Learn You a Haskell for Great Good!; Miran Lipovaca; No Starch Press -* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly -* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook -* 100 Go Mistakes and How to Avoid Them; Teiva Harsanyi; Manning Publications -* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications -* Perl New Features; Joshua McAdams, brian d foy; Perl School -* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton -* Systemprogrammierung in Go; Frank Müller; dpunkt -* Effective awk programming; Arnold Robbins; O'Reilly +* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner +* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson * Raku Fundamentals; Moritz Lenz; Apress +* Java ist auch eine Insel; Christian Ullenboom; +* Leanring eBPF; Liz Rice; O'Reilly +* Modern Perl; Chromatic ; Onyx Neon Press +* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications +* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly +* The DevOps Handbook; Gene Kim, Jez Humble, Patrick Debois, John Willis; Audible +* Higher Order Perl; Mark Dominus; Morgan Kaufmann +* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly +* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress +* Concurrency in Go; Katherine Cox-Buday; O'Reilly +* DNS and BIND; Cricket Liu; O'Reilly +* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly ## Technical references I didn't read them from the beginning to the end, but I am using them to look up things. The books are in random order: -* Understanding the Linux Kernel; Daniel P. Bovet, Marco Cesati; O'Reilly -* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley -* Go: Design Patterns for Real-World Projects; Mat Ryer; Packt * Algorithms; Robert Sedgewick, Kevin Wayne; Addison Wesley * Relayd and Httpd Mastery; Michael W Lucas +* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley * Groovy Kurz & Gut; Joerg Staudemeier; O'Reilly +* Understanding the Linux Kernel; Daniel P. Bovet, Marco Cesati; O'Reilly * The Linux Programming Interface; Michael Kerrisk; No Starch Press * Implementing Service Level Objectives; Alex Hidalgo; O'Reilly +* Go: Design Patterns for Real-World Projects; Mat Ryer; Packt ## Self-development and soft-skills books In random order: -* Ultralearning; Anna Laurent; Self-published via Amazon -* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd -* Atomic Habits; James Clear; Random House Business -* Coders at Work - Reflections on the craft of programming, Peter Seibel and Mitchell Dorian et al., Audiobook -* The 7 Habits Of Highly Effective People; Stephen R. Covey; Simon & Schuster UK +* Ultralearning; Scott Young; Thorsons +* Getting Things Done; David Allen * Eat That Frog!; Brian Tracy; Hodder Paperbacks +* Staff Engineer: Leadership beyond the management track; Will Larson; Audiobook +* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne +* The Software Engineer's Guidebook: Navigating senior, tech lead, and staff engineer positions at tech companies and startups; Gergely Orosz; Audiobook +* Stop starting, start finishing; Arne Roock; Lean-Kanban University +* Digital Minimalism; Cal Newport; Portofolio Penguin +* 97 Things Every Engineering Manager Should Know; Camille Fournier; Audiobook +* Coders at Work - Reflections on the craft of programming, Peter Seibel and Mitchell Dorian et al., Audiobook +* 101 Essays that change the way you think; Brianna Wiest; Audiobook +* Soft Skills; John Sommez; Manning Publications +* Atomic Habits; James Clear; Random House Business +* Ultralearning; Anna Laurent; Self-published via Amazon +* The Off Switch; Mark Cropley; Virgin Books (RE-READ 1ST TIME) * The Good Enough Job; Simone Stolzoff; Ebury Edge -* Deep Work; Cal Newport; Piatkus +* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business * The Power of Now; Eckhard Tolle; Yellow Kite -* Psycho-Cybernetics; Maxwell Maltz; Perigee Books -* 101 Essays that change the way you think; Brianna Wiest; Audiobook -* Digital Minimalism; Cal Newport; Portofolio Penguin -* The Software Engineer's Guidebook: Navigating senior, tech lead, and staff engineer positions at tech companies and startups; Gergely Orosz; Audiobook * Influence without Authority; A. Cohen, D. Bradford; Wiley -* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business -* The Off Switch; Mark Cropley; Virgin Books (RE-READ 1ST TIME) -* Getting Things Done; David Allen -* Staff Engineer: Leadership beyond the management track; Will Larson; Audiobook -* Eat That Frog; Brian Tracy -* The Courage to Be Disliked; Ichiro Kishimi and Fumitake Koga; Audiobook -* So Good They Can't Ignore You; Cal Newport; Business Plus +* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press +* Meditation for Mortals, Oliver Burkeman, Audiobook +* Who Moved My Cheese?; Dr. Spencer Johnson; Vermilion * The Complete Software Developer's Career Guide; John Sonmez; Unabridged Audiobook +* The 7 Habits Of Highly Effective People; Stephen R. Covey; Simon & Schuster UK * The Daily Stoic; Ryan Holiday, Stephen Hanselman; Profile Books -* Solve for Happy; Mo Gawdat (RE-READ 1ST TIME) -* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne -* The Phoenix Project - A Novel About IT, DevOps, and Helping your Business Win; Gene Kim and Kevin Behr; Trade Select -* Who Moved My Cheese?; Dr. Spencer Johnson; Vermilion +* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd +* Eat That Frog; Brian Tracy * The Bullet Journal Method; Ryder Carroll; Fourth Estate -* Soft Skills; John Sommez; Manning Publications -* Meditation for Mortals, Oliver Burkeman, Audiobook -* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press +* The Joy of Missing Out; Christina Crook; New Society Publishers +* So Good They Can't Ignore You; Cal Newport; Business Plus +* The Phoenix Project - A Novel About IT, DevOps, and Helping your Business Win; Gene Kim and Kevin Behr; Trade Select * Buddah and Einstein walk into a Bar; Guy Joseph Ale, Claire Bloom; Blackstone Publishing -* Stop starting, start finishing; Arne Roock; Lean-Kanban University * Time Management for System Administrators; Thomas A. Limoncelli; O'Reilly -* The Joy of Missing Out; Christina Crook; New Society Publishers +* The Courage to Be Disliked; Ichiro Kishimi and Fumitake Koga; Audiobook +* Psycho-Cybernetics; Maxwell Maltz; Perigee Books +* Solve for Happy; Mo Gawdat (RE-READ 1ST TIME) +* Deep Work; Cal Newport; Piatkus * Slow Productivity; Cal Newport; Penguin Random House -* Ultralearning; Scott Young; Thorsons -* 97 Things Every Engineering Manager Should Know; Camille Fournier; Audiobook => ../notes/index.gmi Here are notes of mine for some of the books @@ -146,30 +146,30 @@ In random order: Some of these were in-person with exams; others were online learning lectures only. In random order: -* Ultimate Go Programming; Bill Kennedy; O'Reilly Online -* Structure and Interpretation of Computer Programs; Harold Abelson and more...; -* Apache Tomcat Best Practises; 3-day on-site training -* F5 Loadbalancers Training; 2-day on-site training; F5, Inc. -* Cloud Operations on AWS - Learn how to configure, deploy, maintain, and troubleshoot your AWS environments; 3-day online live training with labs; Amazon -* Protocol buffers; O'Reilly Online -* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training -* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online * Scripting Vim; Damian Conway; O'Reilly Online -* AWS Immersion Day; Amazon; 1-day interactive online training +* Cloud Operations on AWS - Learn how to configure, deploy, maintain, and troubleshoot your AWS environments; 3-day online live training with labs; Amazon * MySQL Deep Dive Workshop; 2-day on-site training +* F5 Loadbalancers Training; 2-day on-site training; F5, Inc. +* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training * Developing IaC with Terraform (with Live Lessons); O'Reilly Online +* Protocol buffers; O'Reilly Online +* The Well-Grounded Rubyist Video Edition; David. A. Black; O'Reilly Online +* Functional programming lecture; Remote University of Hagen * Red Hat Certified System Administrator; Course + certification (Although I had the option, I decided not to take the next course as it is more effective to self learn what I need) +* Structure and Interpretation of Computer Programs; Harold Abelson and more...; +* Ultimate Go Programming; Bill Kennedy; O'Reilly Online +* AWS Immersion Day; Amazon; 1-day interactive online training +* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online * The Ultimate Kubernetes Bootcamp; School of Devops; O'Reilly Online -* Functional programming lecture; Remote University of Hagen -* The Well-Grounded Rubyist Video Edition; David. A. Black; O'Reilly Online +* Apache Tomcat Best Practises; 3-day on-site training ## Technical guides These are not whole books, but guides (smaller or larger) which I found very useful. in random order: +* How CPUs work at https://cpu.land * Advanced Bash-Scripting Guide * Raku Guide at https://raku.guide -* How CPUs work at https://cpu.land ## Podcasts @@ -177,58 +177,58 @@ These are not whole books, but guides (smaller or larger) which I found very use In random order: -* The ProdCast (Google SRE Podcast) -* BSD Now [BSD] -* Pratical AI +* Wednesday Wisdom +* Dev Interrupted * Deep Questions with Cal Newport +* Hidden Brain +* Cup o' Go [Golang] * Fork Around And Find Out -* The Changelog Podcast(s) -* Fallthrough [Golang] +* Pratical AI +* Modern Mentor * Maintainable -* Cup o' Go [Golang] -* Hidden Brain +* The Changelog Podcast(s) +* The ProdCast (Google SRE Podcast) +* BSD Now [BSD] * Backend Banter +* Fallthrough [Golang] * The Pragmatic Engineer Podcast -* Wednesday Wisdom -* Dev Interrupted -* Modern Mentor ### Podcasts I liked I liked them but am not listening to them anymore. The podcasts have either "finished" (no more episodes) or I stopped listening to them due to time constraints or a shift in my interests. -* CRE: Chaosradio Express [german] -* Ship It (predecessor of Fork Around And Find Out) -* FLOSS weekly -* Modern Mentor * Go Time (predecessor of fallthrough) +* Modern Mentor +* CRE: Chaosradio Express [german] * Java Pub House +* FLOSS weekly +* Ship It (predecessor of Fork Around And Find Out) ## Newsletters I like This is a mix of tech and non-tech newsletters I am subscribed to. In random order: -* byteSizeGo -* Andreas Brandhorst Newsletter (Sci-Fi author) +* Ruby Weekly +* The Pragmatic Engineer +* The Valuable Dev * Changelog News -* Golang Weekly +* Andreas Brandhorst Newsletter (Sci-Fi author) * Register Spill -* The Valuable Dev -* Monospace Mentor +* byteSizeGo +* The Imperfectionist +* Golang Weekly * VK Newsletter +* Monospace Mentor * Applied Go Weekly Newsletter -* Ruby Weekly -* The Pragmatic Engineer -* The Imperfectionist ## Magazines I like(d) This is a mix of tech I like(d). I may not be a current subscriber, but now and then, I buy an issue. In random order: -* freeX (not published anymore) -* Linux Magazine * Linux User +* Linux Magazine * LWN (online only) +* freeX (not published anymore) # Formal education diff --git a/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi b/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi index aa3e071b..a413c609 100644 --- a/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi +++ b/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi @@ -19,6 +19,7 @@ This is the seventh blog post about the f3s series for my self-hosting demands i * ⇢ f3s: Kubernetes with FreeBSD - Part 7: k3s and first pod deployments * ⇢ ⇢ Introduction +* ⇢ ⇢ Important Note: GitOps Migration * ⇢ ⇢ Updating * ⇢ ⇢ Installing k3s * ⇢ ⇢ ⇢ Generating `K3S_TOKEN` and starting the first k3s node @@ -49,6 +50,26 @@ In this blog post, I am finally going to install k3s (the Kubernetes distributio => https://k3s.io +## Important Note: GitOps Migration + +**Note:** After publishing this blog post, the f3s cluster was migrated from imperative Helm deployments to declarative GitOps using ArgoCD. The Kubernetes manifests and Helm charts in the repository have been reorganized for ArgoCD-based continuous deployment. + +**To view the exact manifests and charts as they existed when this blog post was written** (before the ArgoCD migration), check out the pre-ArgoCD revision: + +```sh +$ git clone https://codeberg.org/snonux/conf.git +$ cd conf +$ git checkout 15a86f3 # Last commit before ArgoCD migration +$ cd f3s/ +``` + +**Current master branch** contains the ArgoCD-managed versions with: +- Application manifests organized under `argocd-apps/{monitoring,services,infra,test}/` +- Additional resources under `*/manifests/` directories (e.g., `prometheus/manifests/`) +- Justfiles updated to trigger ArgoCD syncs instead of direct Helm commands + +The deployment concepts and architecture remain the same—only the deployment method changed from imperative (`helm install/upgrade`) to declarative (GitOps with ArgoCD). For details on the GitOps migration, see Part X of this series. + ## Updating Before proceeding, I bring all systems involved up-to-date. On all three Rocky Linux 9 boxes `r0`, `r1`, and `r2`: @@ -800,18 +821,7 @@ All manifests for the f3s stack live in my configuration repository: => https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s -**Note:** After publishing this blog post, the f3s cluster was migrated to ArgoCD GitOps. The Kubernetes manifests and Helm charts in the repository have been reorganized for declarative deployment. To view the exact manifests and charts as they existed when this blog post was written (before ArgoCD migration), check out the pre-ArgoCD revision: - -```sh -$ git clone https://codeberg.org/snonux/conf.git -$ cd conf -$ git checkout 15a86f3 # Last commit before ArgoCD migration -$ cd f3s/ -``` - -The current master branch contains the ArgoCD-managed versions with manifests organized under `argocd-apps/` and `*/manifests/` directories. - -Within that repo, the `examples/conf/f3s/registry/` directory contains the Helm chart, a `Justfile`, and a detailed `README`. Here's the condensed walkthrough I used to roll out the registry with Helm. +Within that repo, the `f3s/registry/` directory contains the Helm chart, a `Justfile`, and a detailed `README`. Here's the condensed walkthrough I used to roll out the registry with Helm. ### Prepare the NFS-backed storage diff --git a/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi.tpl b/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi.tpl index bb5dab4e..6e3fd42b 100644 --- a/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi.tpl +++ b/gemfeed/2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi.tpl @@ -16,6 +16,26 @@ In this blog post, I am finally going to install k3s (the Kubernetes distributio => https://k3s.io +## Important Note: GitOps Migration + +**Note:** After publishing this blog post, the f3s cluster was migrated from imperative Helm deployments to declarative GitOps using ArgoCD. The Kubernetes manifests and Helm charts in the repository have been reorganized for ArgoCD-based continuous deployment. + +**To view the exact manifests and charts as they existed when this blog post was written** (before the ArgoCD migration), check out the pre-ArgoCD revision: + +```sh +$ git clone https://codeberg.org/snonux/conf.git +$ cd conf +$ git checkout 15a86f3 # Last commit before ArgoCD migration +$ cd f3s/ +``` + +**Current master branch** contains the ArgoCD-managed versions with: +- Application manifests organized under `argocd-apps/{monitoring,services,infra,test}/` +- Additional resources under `*/manifests/` directories (e.g., `prometheus/manifests/`) +- Justfiles updated to trigger ArgoCD syncs instead of direct Helm commands + +The deployment concepts and architecture remain the same—only the deployment method changed from imperative (`helm install/upgrade`) to declarative (GitOps with ArgoCD). For details on the GitOps migration, see Part X of this series. + ## Updating Before proceeding, I bring all systems involved up-to-date. On all three Rocky Linux 9 boxes `r0`, `r1`, and `r2`: @@ -767,18 +787,7 @@ All manifests for the f3s stack live in my configuration repository: => https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s -**Note:** After publishing this blog post, the f3s cluster was migrated to ArgoCD GitOps. The Kubernetes manifests and Helm charts in the repository have been reorganized for declarative deployment. To view the exact manifests and charts as they existed when this blog post was written (before ArgoCD migration), check out the pre-ArgoCD revision: - -```sh -$ git clone https://codeberg.org/snonux/conf.git -$ cd conf -$ git checkout 15a86f3 # Last commit before ArgoCD migration -$ cd f3s/ -``` - -The current master branch contains the ArgoCD-managed versions with manifests organized under `argocd-apps/` and `*/manifests/` directories. - -Within that repo, the `examples/conf/f3s/registry/` directory contains the Helm chart, a `Justfile`, and a detailed `README`. Here's the condensed walkthrough I used to roll out the registry with Helm. +Within that repo, the `f3s/registry/` directory contains the Helm chart, a `Justfile`, and a detailed `README`. Here's the condensed walkthrough I used to roll out the registry with Helm. ### Prepare the NFS-backed storage diff --git a/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi b/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi index e82055c6..d8460dea 100644 --- a/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi +++ b/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi @@ -19,6 +19,7 @@ This is the 8th blog post about the f3s series for my self-hosting demands in a * ⇢ f3s: Kubernetes with FreeBSD - Part 8: Observability * ⇢ ⇢ Introduction +* ⇢ ⇢ Important Note: GitOps Migration * ⇢ ⇢ Persistent storage recap * ⇢ ⇢ The monitoring namespace * ⇢ ⇢ Installing Prometheus and Grafana @@ -59,7 +60,27 @@ Together, these form the "PLG" stack (Prometheus, Loki, Grafana), which is a pop All manifests for the f3s stack live in my configuration repository: -=> https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s +=> https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s + +## Important Note: GitOps Migration + +**Note:** After publishing this blog post, the f3s cluster was migrated from imperative Helm deployments to declarative GitOps using ArgoCD. The Kubernetes manifests, Helm charts, and Justfiles in the repository have been reorganized for ArgoCD-based continuous deployment. + +**To view the exact configuration as it existed when this blog post was written** (before the ArgoCD migration), check out the pre-ArgoCD revision: + +```sh +$ git clone https://codeberg.org/snonux/conf.git +$ cd conf +$ git checkout 15a86f3 # Last commit before ArgoCD migration +$ cd f3s/prometheus/ +``` + +**Current master branch** contains the ArgoCD-managed versions with: +- Application manifests organized under `argocd-apps/{monitoring,services,infra,test}/` +- Resources organized under `prometheus/manifests/`, `loki/`, etc. +- Justfiles updated to trigger ArgoCD syncs instead of direct Helm commands + +The deployment concepts and architecture remain the same—only the deployment method changed from imperative (`helm install/upgrade`) to declarative (GitOps with ArgoCD). For details on the GitOps migration, see Part X of this series. ## Persistent storage recap @@ -88,17 +109,6 @@ namespace/monitoring created ## Installing Prometheus and Grafana -**Note:** After publishing this blog post, the f3s cluster was migrated to ArgoCD GitOps. The Kubernetes manifests, Helm charts, and Justfiles in the repository have been reorganized for declarative deployment. To view the exact configuration as it existed when this blog post was written (before ArgoCD migration), check out the pre-ArgoCD revision: - -```sh -$ git clone https://codeberg.org/snonux/conf.git -$ cd conf -$ git checkout 15a86f3 # Last commit before ArgoCD migration -$ cd f3s/prometheus/ -``` - -The current master branch contains the ArgoCD-managed versions with Application manifests under `argocd-apps/` and resources organized under `prometheus/manifests/`, `loki/`, etc. The Justfiles have been updated to trigger ArgoCD syncs instead of direct Helm commands. - Prometheus and Grafana are deployed together using the `kube-prometheus-stack` Helm chart from the Prometheus community. This chart bundles Prometheus, Grafana, Alertmanager, and various exporters (Node Exporter, Kube State Metrics) into a single deployment. Ill explain what each component does in detail later when we look at the running pods. ### Prerequisites diff --git a/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi.tpl b/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi.tpl index 1b9bd6bc..75bb892d 100644 --- a/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi.tpl +++ b/gemfeed/2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi.tpl @@ -23,7 +23,27 @@ Together, these form the "PLG" stack (Prometheus, Loki, Grafana), which is a pop All manifests for the f3s stack live in my configuration repository: -=> https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s +=> https://codeberg.org/snonux/conf/src/branch/master/f3s codeberg.org/snonux/conf/f3s + +## Important Note: GitOps Migration + +**Note:** After publishing this blog post, the f3s cluster was migrated from imperative Helm deployments to declarative GitOps using ArgoCD. The Kubernetes manifests, Helm charts, and Justfiles in the repository have been reorganized for ArgoCD-based continuous deployment. + +**To view the exact configuration as it existed when this blog post was written** (before the ArgoCD migration), check out the pre-ArgoCD revision: + +```sh +$ git clone https://codeberg.org/snonux/conf.git +$ cd conf +$ git checkout 15a86f3 # Last commit before ArgoCD migration +$ cd f3s/prometheus/ +``` + +**Current master branch** contains the ArgoCD-managed versions with: +- Application manifests organized under `argocd-apps/{monitoring,services,infra,test}/` +- Resources organized under `prometheus/manifests/`, `loki/`, etc. +- Justfiles updated to trigger ArgoCD syncs instead of direct Helm commands + +The deployment concepts and architecture remain the same—only the deployment method changed from imperative (`helm install/upgrade`) to declarative (GitOps with ArgoCD). For details on the GitOps migration, see Part X of this series. ## Persistent storage recap @@ -52,17 +72,6 @@ namespace/monitoring created ## Installing Prometheus and Grafana -**Note:** After publishing this blog post, the f3s cluster was migrated to ArgoCD GitOps. The Kubernetes manifests, Helm charts, and Justfiles in the repository have been reorganized for declarative deployment. To view the exact configuration as it existed when this blog post was written (before ArgoCD migration), check out the pre-ArgoCD revision: - -```sh -$ git clone https://codeberg.org/snonux/conf.git -$ cd conf -$ git checkout 15a86f3 # Last commit before ArgoCD migration -$ cd f3s/prometheus/ -``` - -The current master branch contains the ArgoCD-managed versions with Application manifests under `argocd-apps/` and resources organized under `prometheus/manifests/`, `loki/`, etc. The Justfiles have been updated to trigger ArgoCD syncs instead of direct Helm commands. - Prometheus and Grafana are deployed together using the `kube-prometheus-stack` Helm chart from the Prometheus community. This chart bundles Prometheus, Grafana, Alertmanager, and various exporters (Node Exporter, Kube State Metrics) into a single deployment. Ill explain what each component does in detail later when we look at the running pods. ### Prerequisites diff --git a/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-part-X.gmi b/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-part-X.gmi new file mode 100644 index 00000000..0d6aff7e --- /dev/null +++ b/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-part-X.gmi @@ -0,0 +1,1116 @@ +# f3s: Kubernetes with FreeBSD - Part X: GitOps with ArgoCD + +> DRAFT - Not yet published + +This is part X of the f3s series for my self-hosting demands in a home lab. f3s? The "f" stands for FreeBSD, and the "3s" stands for k3s, the Kubernetes distribution I use on FreeBSD-based physical machines. + +=> ./2024-11-17-f3s-kubernetes-with-freebsd-part-1.gmi 2024-11-17 f3s: Kubernetes with FreeBSD - Part 1: Setting the stage +=> ./2024-12-03-f3s-kubernetes-with-freebsd-part-2.gmi 2024-12-03 f3s: Kubernetes with FreeBSD - Part 2: Hardware and base installation +=> ./2025-02-01-f3s-kubernetes-with-freebsd-part-3.gmi 2025-02-01 f3s: Kubernetes with FreeBSD - Part 3: Protecting from power cuts +=> ./2025-04-05-f3s-kubernetes-with-freebsd-part-4.gmi 2025-04-05 f3s: Kubernetes with FreeBSD - Part 4: Rocky Linux Bhyve VMs +=> ./2025-05-11-f3s-kubernetes-with-freebsd-part-5.gmi 2025-05-11 f3s: Kubernetes with FreeBSD - Part 5: WireGuard mesh network +=> ./2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi 2025-07-14 f3s: Kubernetes with FreeBSD - Part 6: Storage +=> ./2025-10-02-f3s-kubernetes-with-freebsd-part-7.gmi 2025-10-02 f3s: Kubernetes with FreeBSD - Part 7: k3s and first pod deployments +=> ./2025-12-07-f3s-kubernetes-with-freebsd-part-8.gmi 2025-12-07 f3s: Kubernetes with FreeBSD - Part 8: Observability + +=> ./f3s-kubernetes-with-freebsd-part-1/f3slogo.png f3s logo + +## Table of Contents + +* ⇢ f3s: Kubernetes with FreeBSD - Part X: GitOps with ArgoCD +* ⇢ ⇢ Introduction +* ⇢ ⇢ What is GitOps? +* ⇢ ⇢ What is ArgoCD? +* ⇢ ⇢ Why ArgoCD for f3s? +* ⇢ ⇢ Deploying ArgoCD +* ⇢ ⇢ ⇢ Prerequisites +* ⇢ ⇢ ⇢ Installing ArgoCD +* ⇢ ⇢ ⇢ Accessing ArgoCD +* ⇢ ⇢ ArgoCD Application Structure +* ⇢ ⇢ Repository Organization +* ⇢ ⇢ Migration Strategy: Incremental, One App at a Time +* ⇢ ⇢ ⇢ Migration Phases +* ⇢ ⇢ Example Migration: Miniflux +* ⇢ ⇢ ⇢ Before: Imperative Helm deployment +* ⇢ ⇢ ⇢ After: Declarative GitOps with ArgoCD +* ⇢ ⇢ ⇢ Migration procedure +* ⇢ ⇢ Complex Migration: Prometheus with Multi-Source +* ⇢ ⇢ ⇢ Sync Waves and Hooks +* ⇢ ⇢ Migration Results +* ⇢ ⇢ Benefits Realized +* ⇢ ⇢ ⇢ 1. Single Source of Truth +* ⇢ ⇢ ⇢ 2. Automatic Synchronization +* ⇢ ⇢ ⇢ 3. Drift Detection and Self-Healing +* ⇢ ⇢ ⇢ 4. Easy Rollbacks +* ⇢ ⇢ ⇢ 5. Disaster Recovery +* ⇢ ⇢ ⇢ 6. Documentation by Default +* ⇢ ⇢ ⇢ 7. Safe Experimentation +* ⇢ ⇢ Challenges and Solutions +* ⇢ ⇢ ⇢ Challenge 1: Helm Release Adoption +* ⇢ ⇢ ⇢ Challenge 2: Persistent Volumes Not Tracked by Helm +* ⇢ ⇢ ⇢ Challenge 3: Secrets Management +* ⇢ ⇢ ⇢ Challenge 4: Grafana Not Reloading Datasources +* ⇢ ⇢ ⇢ Challenge 5: Prometheus With Multiple Sources +* ⇢ ⇢ ⇢ Challenge 6: Sync Ordering for Prometheus +* ⇢ ⇢ Justfile Evolution +* ⇢ ⇢ Lessons Learned +* ⇢ ⇢ Future Improvements +* ⇢ ⇢ ⇢ 1. External Secrets Operator +* ⇢ ⇢ ⇢ 2. ApplicationSet for Similar Apps +* ⇢ ⇢ ⇢ 3. App-of-Apps Pattern +* ⇢ ⇢ ⇢ 4. ArgoCD Image Updater +* ⇢ ⇢ Summary + +## Introduction + +In the previous posts, I deployed applications to the k3s cluster using Helm charts and Justfiles—running `just install` or `just upgrade` to imperatively push changes to the cluster. While this approach works, it has several drawbacks: + +* **No single source of truth**: The cluster state depends on which commands were run and when +* **Manual synchronization**: Every change requires manually running commands +* **Drift detection is hard**: No easy way to know if cluster state matches the desired configuration +* **Rollback complexity**: Rolling back changes means re-running old Helm commands +* **No audit trail**: Hard to track who changed what and when + +This blog post covers the migration from imperative Helm deployments to declarative GitOps using ArgoCD. After this migration, the Git repository becomes the single source of truth, and ArgoCD automatically ensures the cluster matches what's defined in Git. + +## What is GitOps? + +GitOps is an operational framework that applies DevOps best practices—like version control, collaboration, and CI/CD—to infrastructure automation. The core idea is simple: the entire desired state of your infrastructure is stored in Git, and automated processes ensure the actual state matches the desired state. + +Key principles: + +* **Declarative**: The system's desired state is described declaratively (YAML manifests, Helm values) +* **Versioned and immutable**: All changes are committed to Git, providing a complete history +* **Pulled automatically**: An agent in the cluster continuously pulls the desired state from Git +* **Continuously reconciled**: The agent ensures the actual state matches the desired state, automatically correcting drift + +For Kubernetes, this means: + +1. All manifests, Helm charts, and configuration live in a Git repository +2. A tool (ArgoCD in our case) watches the repository +3. When changes are pushed to Git, ArgoCD automatically applies them to the cluster +4. If someone manually changes resources in the cluster, ArgoCD detects the drift and can automatically revert it + +## What is ArgoCD? + +ArgoCD is a declarative, GitOps continuous delivery tool for Kubernetes. It's implemented as a Kubernetes controller that continuously monitors running applications and compares the current, live state against the desired target state defined in Git. + +=> https://argo-cd.readthedocs.io ArgoCD Documentation + +Key features: + +* **Automated deployment**: Monitors Git repositories and automatically syncs changes to the cluster +* **Application definitions**: Defines applications as CRDs (Custom Resource Definitions) +* **Health assessment**: Understands Kubernetes resources and can determine if an application is healthy +* **Web UI and CLI**: Provides both a web interface and command-line tool for managing applications +* **RBAC**: Role-based access control for team collaboration +* **SSO integration**: Can integrate with existing authentication systems +* **Multi-cluster support**: Can manage applications across multiple Kubernetes clusters +* **Sync waves and hooks**: Control the order of resource deployment and run jobs at specific lifecycle points + +## Why ArgoCD for f3s? + +For a home lab cluster, ArgoCD provides several benefits: + +**Disaster recovery**: If the entire cluster is lost, I can rebuild it by: +1. Bootstrapping a new k3s cluster +2. Installing ArgoCD +3. Pointing ArgoCD at the Git repository +4. All applications automatically deploy to the desired state + +**Experimentation safety**: I can test changes in a separate Git branch without affecting the running cluster. Once validated, merge to master and ArgoCD applies the changes. + +**Drift detection**: If I manually change something in the cluster (for debugging), ArgoCD shows the difference and can automatically revert it. + +**Declarative configuration**: The Git repository documents the entire cluster configuration. No need to remember which `just` commands to run or in which order. + +**Automatic sync**: Push to Git, and changes deploy automatically. No need to SSH to a workstation and run Helm commands. + +## Deploying ArgoCD + +ArgoCD itself runs as a set of Kubernetes resources in the cluster. The official installation method uses `kubectl apply`, which is fitting—ArgoCD manages everything else via GitOps, but ArgoCD itself needs a bootstrap. + +### Prerequisites + +Create the `cicd` namespace where ArgoCD will run: + +```sh +$ kubectl create namespace cicd +namespace/cicd created +``` + +### Installing ArgoCD + +The ArgoCD installation lives in the configuration repository: + +=> https://codeberg.org/snonux/conf/src/branch/master/f3s/argocd codeberg.org/snonux/conf/f3s/argocd + +I deployed ArgoCD using Helm instead of the raw manifests. This provides easier upgrades and customization. The installation is managed via a Justfile: + +```sh +$ cd conf/f3s/argocd +$ just install +helm repo add argo https://argoproj.github.io/argo-helm +helm repo update +helm install argocd argo/argo-cd \ + --namespace cicd \ + --version 7.7.12 \ + -f values.yaml +NAME: argocd +LAST DEPLOYED: ... +NAMESPACE: cicd +STATUS: deployed +``` + +The `values.yaml` file configures several important aspects: + +**Persistent storage for the repo-server**: ArgoCD clones Git repositories to cache them locally. I configured a persistent volume so the cache survives pod restarts: + +```yaml +repoServer: + volumes: + - name: repo-cache + persistentVolumeClaim: + claimName: argocd-repo-cache-pvc + volumeMounts: + - name: repo-cache + mountPath: /tmp +``` + +**Admin password preservation**: By default, the admin password is auto-generated and stored in a secret. To ensure it persists across Helm upgrades: + +```yaml +configs: + secret: + createSecret: false +``` + +I manually created the secret before installation: + +```sh +$ ARGOCD_ADMIN_PASSWORD=$(pwgen -s 32 1) +$ BCRYPT_HASH=$(htpasswd -nbBC 10 "" "$ARGOCD_ADMIN_PASSWORD" | tr -d ':\n' | sed 's/$2y/$2a/') +$ kubectl create secret generic argocd-secret \ + --from-literal=admin.password="$BCRYPT_HASH" \ + -n cicd +$ echo "ArgoCD admin password: $ARGOCD_ADMIN_PASSWORD" +``` + +**Server configuration**: Enabled insecure mode since TLS is handled by the OpenBSD edge relays: + +```yaml |
