Learn Kubernetes Weekly issue 102

Long-lived connections in Kubernetes, Build your service mesh, Optimizing database performance, Don't use Cilium's default pod CIDR

23 Oct 2024

This issue is brought to you by StormForge — Double your Kubernetes resource utilization and unburden developers from sizing complexity with the first HPA-compatible vertical pod rightsizing solution. Try it for free

  1. Load balancing and scaling long-lived connections in Kubernetes

    Daniele Polencic

    Kubernetes doesn't load balance long-lived connections, and some pods might receive more requests than others.

    If you're using gRPC, AMQP or any other long-lived connection (e.g. database), you might want to consider client-side load balancing.

  2. Choosing Karpenter vs Cluster Autoscaler for maximizing cluster efficiency

    StormForge

    The Cluster Autoscaler and Karpenter each take a distinct approach to Kubernetes node autoscaling.

    This article provides a detailed technical comparison of their features and limitations for maximizing Kubernetes cluster efficiency.

    sponsored

  3. Build your service mesh

    Ramón Berrutti

    In this 2-part article, you will learn how to build your own Service Mesh.

    The project focuses on building a basic proxy and adding service mesh features, using Netfilter to intercept and modify network packets

  4. Optimizing database performance: Exploring pgpool2 deployment on Azure Kubernetes Service

    Fadareakbalogun

    This article explores the deployment of pgpool2 on AKS to optimize database performance, specifically focusing on load balancing and connection pooling for PostgreSQL databases.

  5. Learned it the hard way: Don’t use Cilium’s default pod CIDR

    Isala Piyarisi

    This incident highlights the importance of carefully configuring Cilium's Pod CIDR to avoid conflicts with existing internal subnets, the value of methodical troubleshooting, and the need to understand low-level networking infrastructure.

  6. Reducing cloud costs of Kubernetes clusters

    Iya Lang

    Learn how Adidas's team reduced cluster costs by up to 50% by leveraging tools like Karpenter, Kyverno, kube-downscaler, and KEDA.

    The team optimized resource utilization, scaled applications, and reduced waste, resulting in significant cost savings.

Articles worth checking out:

Does setting K8s requests look like this at your company?

StormForge

STOP setting Kubernetes requests and limits!

Let machine learning and automation do it for you with StormForge.

Try it for free, or play around in the sandbox environment—no form-filling required.

Does setting K8s requests look like this at your company?
  1. Advanced Autoscaling in Kubernetes with KEDA

    StormForge

    KEDA builds on the HPA to provide more flexibility, options for various metrics out of the box, and the ability to scale apps to zero.

    Learn about KEDA architecture, components, and benefits, and walk through a practical application and integration.

    sponsored

  2. Using kubernetes_groups in EKS access entry: when and how

    Xing Du

    The AWS EKS access entry has a feature called kubernetes_groups, which solves a problem with coarse managed access policies that don't allow customization.

    Learn how to use kubernetes_groups in EKS to manage access control.

  3. Reclaim your unused Kubernetes resources

    Akriotis Kyriakos

    In this tutorial, you will learn how Sleepcycles optimizes Kubernetes resources via SleepCycle CRDs, scheduling shutdowns/wake-ups for various workloads using CronJobs and Runner pods.

  4. Managed SSL for TCP load balancer in GKE

    Alex Movergan

    This article discusses how to use a managed SSL certificate for a TCP load balancer in GKE, providing a workaround for the limitations of Google-managed SSL certificates.

    • Platform Engineer with True Legends

    • Salary: €80K a year

    • Location: based in the office (and remote from home) in Amsterdam / Amersfoort / Utrecht, NL

    • Tech stack: Kubernetes

    • Software Engineer with Twilio

    • Salary: $112.32K to $165.2K a year

    • Location: remote from the United States

    • Tech stack: Kubernetes, AWS, Docker, Go, Java, DynamoDB

    • DevSecOps Engineer with Gemini

    • Salary: $248K to $310K a year

    • Location: remote from the United States

    • Tech stack: Kubernetes, AWS, Go, Python, Terraform

    • Data Engineer with Figure

    • Salary: $156.64K to $195.8K a year

    • Location: remote from the United States

    • Tech stack: Kubernetes, GCP, Helm, Python, Javascript, Java, Scala, Typescript, Kotlin, PostgreSQL

    • DevOps Engineer with Apogee

    • Salary: $90K to $130K a year

    • Location: remote from the United States

    • Tech stack: Kubernetes, AWS, Azure, GCP, On-premise, Docker, Shell, Python, Javascript, Powershell

Discover more Kubernetes jobs on Kube Careers →

  1. Azure Service Operator v2

    Azure Service Operator (ASO) allows you to deploy and maintain various Azure Resources using the Kubernetes tooling you already know and use.

    For example, ASO can set up your Redis Cache or PostgreSQL and then configure your app to use them.

  2. Kondense: automated resouce sizing

    unagex

    Kondense is an automated resource sizing tool.

    It runs as a sidecar in kubernetes pods and uses memory pressure to apply just the right amount of memory on a container to page out the unused memory while not getting out-of-memory killed.

  3. kr8s: Python library for Kubernetes

    kr8s is a simple, extensible Python client library with an API inspired by kubectl to reduce the developer learning curve.

  4. GitOps bridge

    GitOps Bridge is a community project that aims to showcase best practices and patterns for bridging the process of creating a Kubernetes cluster and subsequently managing everything through GitOps.

    It focuses on using ArgoCD or FluxCD.

  5. Goldilocks: requests and limits

    Goldilocks is a utility that can help you identify a starting point for resource requests and limits in Kubernetes.

Other interesting projects:

Upcoming Kubernetes events

  1. Oct

    23

    Human errors and social engineering exploits in Kubernetes

    Online & in-person meetup organized by K8SUG UK.

    • Location: London, UK and virtual

    • This is a free event.

  2. Oct

    24

    P99 Conf 2024

    Online conference organized by Scylla.

    • This is a virtual event

    • This event requires an entrance fee

  3. Oct

    24

    Open Source Observability Day

    Online conference organized by Open Source Observability Day.

    • This is a virtual event

    • This is a free event.

  4. Oct

    24

    Multitenancy, autoscaling workloads with Karpenter & Application Lifecycle Management: disconnected

    In-person meetup organized by Cloud Native Göteborg.

    • Location: Göteborg, SE

    • This is a free event.

  5. Oct

    29

    All Things Open 2024

    In-person conference organized by All Things Open.

    • Location: Raleigh, USA

    • This event requires an entrance fee

  6. Nov

    7

    Choosing the right requests, limits and nodes in Kubernetes

    Online meetup organized by Learnk8s.

    • This is a virtual event

    • This is a free event.

  7. Nov

    14

    Advanced Kubernetes course

    Online workshop organized by Learnk8s.

    • This is a virtual event

    • This event requires an entrance fee

Discover more Kubernetes events on Kube Events →

Kubernetes Call for Papers

  1. expired

    Dutch Cloud Native Day 2024

    The Call For Paper was open until 31 October 2024 at UTC. More info →
    • Location: Amsterdam, NL

    • In-person conference organized by Cloud Native Amsterdam.

    • The conference starts on the 10 December 2024.

    • Apply here
  2. expired

    KubeCon + CloudNativeCon Europe 2025

    The Call For Paper was open until 25 November 2024 at UTC. More info →
    • Location: London, UK

    • In-person conference organized by Linux Foundation.

    • The conference starts on the 1 April 2025.

    • Apply here
  3. expired

    Tech Internals Conf

    The Call For Paper was open until 1 November 2024 at UTC. More info →
    • Location: Berlin, DE

    • In-person conference organized by TIC.

    • The conference starts on the 27 February 2025.

    • Apply here
  4. expired

    CfgMgmtCamp 2025

    The Call For Paper was open until 1 November 2024 at UTC. More info →
    • Location: Ghent, BE

    • In-person conference organized by CfgMgmtCamp.

    • The conference starts on the 5 February 2025.

    • Apply here
  5. expired

    DevSecOps 2024

    The Call For Paper was open until 4 November 2024 at UTC. More info →
    • This is a virtual event

    • Online conference organized by Conf42.

    • The conference starts on the 5 December 2024.

    • Apply here
  6. expired

    Cybersec Asia 2025

    The Call For Paper was open until 30 November 2024 at UTC. More info →
    • Location: Bangkok, TH

    • In-person conference organized by Cybersec Asia.

    • The conference starts on the 29 January 2025.

    • Apply here
  7. 43

    days

    Devopsdays Zurich

    The Call For Paper is open until 15 January 2025 at UTC. More info →
    • Location: Zurich, CH

    • In-person conference organized by Devopsdays.

    • The conference starts on the 12 March 2025.

    • Apply here
  8. expired

    RuhrSec 2025

    The Call For Paper was open until 10 November 2024 at UTC. More info →
    • Location: Bochum, DE

    • In-person conference organized by Hackmanit.

    • The conference starts on the 21 February 2025.

    • Apply here
  9. 35

    days

    QCon London

    The Call For Paper is open until 7 January 2025 at UTC. More info →
    • Location: London, UK

    • In-person conference organized by InfoQ.

    • The conference starts on the 7 April 2025.

    • Apply here

Until next time!

— Dan

Subscribe and, every Wednesday, receive the latest Kubernetes news!

Or follow us on: