Fading Coder

One Final Commit for the Last Sprint

Deploying Cilium on Kubernetes: A Comprehensive Setup Guide

This guide walks through the process of setting up Cilium as the CNI plugin on a Kubernetes cluster built with kubeadm. The environment uses Ubuntu 24.04, Kubernetes v1.30.2, and Containerd 1.7.18. The cluster conssits of one master node and three worker nodes. Environment Preparation Perform the fo...

Kubernetes Pods: The Fundamental Building Block in Container Orchestration

Why Do We Need Pods? Throughout your journey with Kubernetes, you may have repeatedly asked yourself: why do we need Pods? We have invested significant effort in understanding the principles of Linux containers—the mantra of "Namespaces for isolation, Cgroups for resource limits, and rootfs for...

Implementing Graceful Shutdown for Eureka Clients in Kubernetes

Problem Statement When deploying applications on Kubernetes using rollling updates, the platform starts a new Pod, waits for it to become healthy, and then terminates the old Pod. However, requests may still arrive at the old Pod during the termination process. If the Pod is killed while handling ac...

Kubeadm-Based Kubernetes Cluster Setup and Configuration

Clear any existing container runtime installations: sudo yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine docker-ce docker-ce-cli containerd.io Install necessary dependencies and configure the repository: sudo...

Setting Up a Local Kubernetes Environment with Minikube on CentOS

This guide provides a step-by-step process to install Minikube and kubectl on CentOS for creating a local single-node Kubernetes cluster. Prerequisites and References Official Documentation: kubectl installation Minikube installation Install kubectl Download the Binary Obtain the kubectl binary for...

Building Kubernetes Clusters from Scratch

Infrastructure Planning Prerequisites Familiarity with Kubernetes concepts is essential. Setting up a temporary cluster using existing tutorials helps understand kubectl commands and core concepts like pods and services. Install kubectl following the appropriate installation guide if not already pre...

Kubernetes Resource Manifest Structure and Field Reference

Pod Manifest Specification apiVersion: v1 kind: Pod metadata: name: web-pod namespace: production labels: app: web-server version: stable annotations: description: "Production web application instance" spec: restartPolicy: Always nodeSelector: environment: production hostNetwork: false ima...

Deploying Kubernetes Clusters with Rancher: A Complete Setup Guide

Quick Rancher Deployment The following Docker command launches a Rancher server instance with certificate mounting. If you lack custom certificates, remove the volume mount options—Rancher will automatically generate self-signed certificates. docker run -d --name rancher-server --privileged --restar...

Deploying MySQL 8 to Kubernetes for ruoyi-cloud Project

Background After setting up a Kubernetes cluster and a private image registry, it's time to begin practical service orchestration. This series uses the ruoyi-cloud project for hands-on deployment, following the order of MySQL, Nacos, Redis, Nginx, Gateway, Auth, and System to deploy the microservice...

Extending K8s Certificate Validity to 100 Years

Modify Source Code ==== 1. Extend CA Expiration to 100 Years (Default is 10 Years) --------------------------- Edit file: `./staging/src/k8s.io/client-go/util/cert/cert.go```` // Locate the NotAfter field within this function: // NotAfter: now.Add(duration365d * 10).UTC() // Change default 10-year...