K3s Edge Computing in Practice: Lightweight Kubernetes Deployment and Operations for Resource-Constrained Environments

Overview You’re an ops engineer at a smart manufacturing company. The factory floor has 200 edge gateways, each running data collection and real-time quality inspection services. Previously deployed with bare Docker, every update meant writing scripts to SSH into each machine, pull images, and restart containers. Running through 200 machines took half an hour, with a few always failing due to network jitter. You think: isn’t this exactly what Kubernetes solves?...

July 16, 2026 · 20 mins · 4085 words · Xu Baojin

Istio Service Mesh Getting Started: A Practical Guide from Sidecar to Ambient

Overview Let’s answer the most fundamental question first: what does a Service Mesh do? In one sentence: it handles the messy communication stuff between microservices for you. In a microservices architecture, when service A calls service B, what looks like a simple HTTP request actually involves a bunch of concerns: what if it times out? How many retries? Should we circuit break? How do we do canary traffic? Certificate management? Distributed tracing?...

July 12, 2026 · 12 mins · 2523 words · XuBaojin

Helm Chart Writing and Private Repository Management

Why Helm? Managing K8s applications with bare kubectl apply -f works at small scale, but as environments multiply (dev/staging/prod) and services grow, problems quickly surface: Hardcoded configuration: Each environment has its own YAML file with image tags, replica counts, and resource limits hardcoded. Changing a single value means editing ten files. No version management: Upgrades and rollbacks rely on manual records—no way to know what version was last deployed. No reusability: Deploying Redis and MySQL requires two completely different YAML sets with no way to templatize....

January 16, 2025 · 13 mins · 2653 words · XuBaojin

Kubernetes Cluster Upgrade Strategy: From Planning to Zero-Downtime Execution

Overview Kubernetes releases three minor versions per year, each with a support cycle of approximately 14 months. This means production clusters need to be upgraded roughly every 6-12 months. Cluster upgrades are one of the most sensitive operations in K8s operations — you must keep pace with the community for security patches and new features while ensuring zero downtime and zero failures during the upgrade process. This article covers the complete methodology of Kubernetes cluster upgrades, from version strategy formulation, pre-upgrade preparation, upgrade execution, blue-green/canary strategies, rollback mechanisms, to production-grade best practices....

January 3, 2025 · 19 mins · 3962 words · XuBaojin

Kubernetes Cost Optimization in Practice: From Resource Governance to FinOps

Overview Kubernetes has become the standard runtime platform for cloud-native applications, but its elasticity and flexibility also bring significant cost management challenges. According to the Flexera 2024 State of the Cloud report, enterprises waste an average of 32% of their cloud spending, and resource waste in Kubernetes clusters is particularly pronounced — an ungoverned K8s cluster often has resource utilization below 30%. Kubernetes cost optimization is not a one-time configuration adjustment, but a systematic engineering effort spanning resource governance, autoscaling, instance type selection, and FinOps culture building....

November 22, 2024 · 23 mins · 4737 words · XuBaojin

Kubernetes Multi-Cluster Management in Practice

Overview When your business scale grows beyond what a single cluster can handle, multi-cluster becomes an inevitable choice. Reasons include: single cluster node limits (5000 nodes), multi-region deployment, hybrid cloud strategy, fault isolation, and compliance requirements. But multi-cluster management complexity grows exponentially—how to deploy applications across clusters, discover services cross-cluster, synchronize configurations, and handle failover. This article systematically covers multi-cluster architecture patterns, mainstream management tool comparisons, and practical solutions for cross-cluster service discovery, CI/CD, and disaster recovery failover....

November 20, 2024 · 10 mins · 2124 words · XuBaojin

Kubernetes Disaster Recovery: From etcd Backup to Velero

Overview “Hope for the best, prepare for the worst.” In Kubernetes production environments, disaster recovery is the last line of defense. Whether it’s etcd corruption, accidental deletion, node failure, or even entire cluster loss, having a solid backup and recovery strategy is critical. This article systematically covers K8s disaster recovery—from etcd backup and restore, Velero full-cluster backup, PV data backup, to cross-cluster recovery and disaster recovery architecture design. Based on Kubernetes v1....

October 21, 2024 · 14 mins · 2846 words · XuBaojin

Kubernetes Autoscaling: HPA/VPA/CA Deep Dive

Overview Autoscaling is one of Kubernetes’ most attractive capabilities—scale up when traffic arrives, scale down when it leaves, ensuring service quality while controlling costs. But “automatic” doesn’t mean “mindless.” Poorly configured autoscaling can cause: delayed scaling leading to service degradation, aggressive scale-down disrupting long connections, and flapping scaling wasting resources. K8s autoscaling consists of three layers plus an event-driven extension: Layer Component Scaling Dimension Trigger Pod horizontal HPA Pod replica count CPU/memory/custom metrics Pod vertical VPA Pod resource quotas CPU/memory historical usage Node Cluster Autoscaler Node count Pending Pods Event-driven KEDA Pod replica count Event sources (Kafka/Redis/…) Based on Kubernetes v1....

August 19, 2024 · 13 mins · 2692 words · XuBaojin

Kubernetes Operator Development Guide

Overview A Kubernetes Operator is a pattern that packages the operational knowledge of a specific application (like deployment, scaling, backup, recovery) into automated controller software. Instead of manually editing YAML or running kubectl commands, Operators monitor custom resources and automatically reconcile the cluster toward the desired state. This guide provides a deep dive into Operator development—from CRD design principles and Controller reconciliation loops to operator-sdk/kubebuilder hands-on development, testing, and release....

July 23, 2024 · 17 mins · 3507 words · XuBaojin

Container Runtime: containerd and CRI Deep Dive

Overview Kubernetes v1.24 officially removed dockershim, meaning Docker Engine is no longer used as the K8s container runtime. Instead, CRI-compliant (Container Runtime Interface) runtimes are used, with containerd being the de facto standard choice. Many ops teams perceive containerd as merely a “Docker replacement,” but its architecture, image management, and CLI tools differ significantly from Docker. This article provides a deep dive into the CRI specification, containerd architecture, daily operations, and migration from Docker....

June 14, 2024 · 12 mins · 2385 words · XuBaojin