Marcin Jasion - Pragmatic DevOps
    • Tags
    • 502 UPE
    • 503 UC
    • automation
    • aws
    • AWS VPC
    • blockchain
    • cloud
    • Cloud computing
    • Code Examples
    • Concurrency
    • Customer Gateway
    • debug
    • Distributed Computing
    • Distributed Systems
    • EC2 instance
    • ethereum
    • Fault Tolerance
    • gitlab
    • gmail
    • Go Programming
    • Golang
    • google app scripts
    • High Availability
    • how to
    • infrastructure security
    • introduction
    • IPSec parameters
    • IPSec protocol
    • istio
    • Kubernetes
    • Kubernetes API
    • Kubernetes Coordination
    • labels
    • Leader Election
    • Leader Election Pattern
    • Lease Locks
    • network security
    • parallelism
    • ping
    • Scalability
    • Site-to-Site VPN
    • solidity
    • tcpdump
    • terraform
    • terraform cloud
    • tutorial
    • Unifi Dream Machine
    • Unifi Dream Router
    • Unifi router
    • upe
    • Upstream connection termination
    • upstream_reset_before_response_started
    • Virtual Private Gateway
    • VPC routing
    • VPN connection
    • VPN setup
    • wireshark
    Hero Image
    Implementing Leader Election in Golang using Kubernetes API

    Introduction Leader election is a crucial pattern in distributed systems where multiple instances or nodes compete to perform certain tasks. In a Kubernetes cluster, leader election can be used to ensure that only one instance is responsible for executing leader-specific tasks at any given time. This blog post will explore how to implement a leader election mechanism in Kubernetes using lease locks. Overview The leader election mechanism implemented in Go code relies on Kubernetes coordination features, specifically Lease object in the coordination.

    June 25, 2023 Read
    Navigation
    • About
    • Skills
    • Accomplishments
    • Presentations
    Contact me:
    • [email protected]