Skip to content

Instantly share code, notes, and snippets.

View Dark-Kernel's full-sized avatar

Sumit Patel Dark-Kernel

View GitHub Profile

This is something cool

#!/bin/bash
# Perform a blue-green deployment in Kubernetes. Still not perfect, modify accordingly.
# check the pod readiness
check_readiness() {
local deployment=$1
local timeout=300
local interval=5
local elapsed=0