Handling an Ungraceful Service in Kubernetes by Bash

Written by kavehmz | Published 2019/09/21
Tech Story Tags: kubernetes | bash | shutdown | readinessprobe | latest-tech-stories | kubernetes-and-bash | termination-signal | kill-app-in-kubernetes

TLDR Kubernetes has several mechanisms to check if your app is able to handle connections and in return if it wants to kill you app (scale down, or end of life for your preemptible/spot-instance node,… it will signal your app to wrap up and shutdown. If your server does not handle shutdowns gracefully or it is not adjustable in ways you need to make it work in k8s (shutdown delay, …), notice you can always wrap it with bash.via the TL;DR App

no story

Written by kavehmz | A binary world janitor. Specialized in code, architecture cleanup and cost reduction
Published by HackerNoon on 2019/09/21