Increasing resilience in Kubernetes

Tim Little
Aug 6, 2019 · 6 min read
Image for post
Image for post
Photo by fer gomez on Unsplash

Our Kubernetes node problem

Image for post
Image for post

Adding resilience to Kubernetes services

affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- <service-name>
topologyKey: "kubernetes.io/hostname"
readinessProbe:
httpGet:
path: /readiness
port: 8080
initialDelaySeconds: 15
lifecycle:
preStop:
exec:
command: ["/bin/sh","-c","sleep 10"]
resources:
requests:
cpu: 100m
Image for post
Image for post

The root cause:

Image for post
Image for post
Image for post
Image for post

Conclusion


Kudos Engineering

Stories from the Kudos Engineering team

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store