This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |