Tag: #operator
Writing on GPUs, LLMs, MLOps, Kubernetes — and mindset · 20 posts
Spinning Up and Killing Postgres on Kubernetes with CloudNativePG — Failover Measured at 23 Seconds
On a real 8-node Kubernetes cluster, I installed CloudNativePG (CNPG) v1.30.0, brought up a 3-instance Postgres cluster, and then actually killed the primary. From bootstrap through replication checks, to failover after
2026-07-11 · 5 min read #cloudnativepg#postgresql#kubernetes#operator#databaseBuilding a Kubernetes GPU Operator in Rust — Diagnosing a Real Cluster with kube-rs
Against a production 8-node homelab cluster (k8s v1.32.5), I used kube-rs to build and run a GPU operator in Rust myself. I defined a GpuInventory custom resource and launched two controllers (node scan → record CR statu
2026-07-11 · 6 min read #rust#kubernetes#operator#gpu#kube-rsBuilding a Kubernetes Operator in Rust (kube-rs)
A Kubernetes Operator is a controller that encodes operational knowledge as code. This post covers the Operator pattern (CRD + controller + reconcile loop) from first principles, then how to build a real operator with ku
2026-06-25 · 12 min read #rust#kubernetes#operator#kube-rsOperator vs Helm vs GitOps — Which to Use When
These three operational tools look similar but solve different problems. Helm is packaging, GitOps is declarative synchronization, and an Operator is an active controller. We dig into static deployment versus continuous
2026-06-15 · 19 min read #kubernetes#operator#helm#gitops#argocdOperator Security — Least-Privilege RBAC, Multi-Tenancy, Supply Chain
An Operator runs cluster-wide with powerful privileges, so a single compromise can endanger the whole cluster. This article covers Operator security end to end — generating least-privilege RBAC with markers, choosing Rol
2026-06-15 · 21 min read #kubernetes#operator#rbac#security#supply-chainOperator Observability — Metrics, Events, Logging, and SLOs
A deep dive into observability for Kubebuilder-based Operators across metrics, events, logging, tracing, status/conditions, and SLOs. From the meaning of controller-runtime default metrics to adding custom metrics, wirin
2026-06-15 · 19 min read #kubernetes#operator#observability#prometheus#controller-runtimeCRD Design and Versioning — Schema, Validation, and Conversion Webhooks
A CustomResourceDefinition is an API contract that outlives the code around it. This deep dive walks through OpenAPI v3 schema design and CEL validation, multi-version strategy and storage versions, conversion webhook im
2026-06-15 · 16 min read #kubernetes#operator#crd#versioning#conversion-webhookOperator Testing and Distribution — envtest, e2e, OLM, and Bundle Packaging
A deep dive into testing and distributing Kubernetes Operators safely. Covers the test pyramid (unit reconcile, envtest, e2e), OLM concepts (CSV, bundle, catalog), upgrade graphs, least-privilege RBAC, multi-tenant insta
2026-06-15 · 15 min read #kubernetes#operator#testing#envtest#olmWhat You Can Build with Operators — A Real-World Catalog
A catalog of where Operators shine — databases, messaging, caching, monitoring, certificates, secrets, GitOps, backup, service mesh, and ML. For each case we cover how it works, a representative CRD example, a comparison
2026-06-15 · 12 min read #kubernetes#operator#crd#cncf#platform-engineeringAdvanced Operators — Finalizers, Admission Webhooks, and Status/Conditions Design
This post covers the three topics that move a Kubernetes Operator from a demo to production: cleaning up external resources with Finalizers, Validating and Mutating Admission Webhooks, and designing the Status subresourc
2026-06-15 · 14 min read #kubernetes#operator#finalizer#webhook#kubebuilderUnderstanding the Kubernetes Operator Pattern — Controllers, Reconciliation, and Codifying Operational Knowledge
A deep, operations-focused look at what the Operator pattern solves, how the control loop and reconciliation work, how CRDs and controllers combine, control plane extension mechanisms, Capability Levels, and when to use
2026-06-15 · 20 min read #kubernetes#operator#controller#reconcile#crdBuilding a Database Operator — Backup, Failover, and Scale as Code
A code-driven walkthrough of solving the hard parts of stateful database operations with a reconcile loop. We cover CR spec design, reconciling StatefulSet/Service/PVC, periodic backups, failover and leader-election conc
2026-06-15 · 14 min read #kubernetes#operator#database#kubebuilder#controller-runtimeProduction Operator Upgrades and Migration — Evolving Without Downtime
A complete walkthrough of safely upgrading an Operator in production. It covers rolling the controller Deployment with leader election, multi-version CRDs and conversion webhooks, phased rollout of managed workloads, rol
2026-06-15 · 22 min read #kubernetes#operator#kubebuilder#controller-runtime#crdThe Reconcile Loop in Depth — Idempotency, Error Handling, Queues, and Performance
A deep dissection of the reconcile loop: the request flow (informer to workqueue to reconcile), Result and requeue, idempotency patterns, status and conditions, predicate event filters, rate limiting and concurrency, cac
2026-06-15 · 18 min read #kubernetes#operator#reconcile#controller-runtime#performanceNot Just Go — Building Operators With Kopf, Metacontroller, and Shell Operator
We break the myth that an Operator must be built with Go and kubebuilder. We compare non-Go options with code: Python Kopf, the declarative-hook approach of Metacontroller, and shell-operator and Ansible Operator. We cov
2026-06-15 · 19 min read #kubernetes#operator#kopf#metacontroller#pythonOperator Best Practices and Anti-Patterns
A code-level rundown of what makes a good Operator and the common anti-patterns. From principles like a small API, idempotent reconcile, observability, and safe upgrades, through pitfalls like side-effect spam, status mi
2026-06-15 · 14 min read #kubernetes#operator#best-practices#reconcile#rbacBuilding Your First Operator with Kubebuilder — From Project Creation to Deployment
Build a working Operator end to end with Kubebuilder. Covers prerequisites, the init/create api flow, defining API types, the full reconcile code that manages a Deployment and Service, RBAC markers, CRD generation, local
2026-06-15 · 10 min read #kubernetes#kubebuilder#operator#controller-runtime#goKubernetes Database Deep Dive 2025: Operator Patterns, HA Configuration, Backup/Recovery, Performance Tuning
K8s DB operations deep dive! CloudNativePG vs Percona Operator comparison, Primary-Replica automatic Failover, pgBackRest/Velero backup, WAL archiving, Connection Pooling (PgBouncer), resource tuning (CPU/Memory/IOPS), A
2026-04-13 · 20 min read #kubernetes#database#operator#cloudnativepg#perconaRunning Databases on K8s -- Complete Guide to CNPG, Percona, Vitess, and Helm Charts
A comprehensive overview of running databases in Kubernetes environments. We compare CloudNativePG, Percona Operator, Vitess, and major Helm charts, and share practical operational know-how.
2026-04-11 · 15 min read #database#kubernetes#cnpg#postgresql#mysqlRunning Databases on Kubernetes Complete Guide: StatefulSet, Operators, Backup and Recovery
Everything about running DBs on K8s! StatefulSet vs Deployment, PV/PVC/StorageClass, DB Operators (CloudNativePG/Percona/MongoDB), Backup/Recovery (Velero/pgBackRest), Monitoring (PMM), HA/Failover, Performance Tuning, P
2026-03-24 · 17 min read #kubernetes#database#statefulset#operator#postgresql