Professional Documents
Culture Documents
on Kubernetes deployments
⭐ReplicaSet
⭐podAntiAffinity
Say, you want to deploy a Redis cache, and you want to have the cache
server to be in different nodes.
⭐Resource Declaration
It’s always a best practice to declare the minimum and maximum
resources required for your deployment. The reason behind this is-
If my Pod is running that doesn’t mean, it’s working fine and can
handle the traffic.
⭐Rolling Update
📎If we want to test with some partial traffic first and then want to go
for actual traffic, we can use the Canary Deployment strategy to
achieve that. We can point some percentage of traffic (as canary
weight) to our new application version. If everything stays ok, we can
point the service fully to the new application version.
There are various deployment strategies through which we can achieve
different requirements. I will discuss different deployments strategy
in-depth in another post.
It’s always a better idea to define preStop container lifecycle hook. The
reason being is, that it’ll maintain good cluster health while
destroying/stopping a running pod.
these things in place so that your cluster will not suffer from any of the
above-mentioned situations.