Deploying and sharing HA applications
As you may be aware, deploying a basic application in Kubernetes is a piece of cake. Trying to make your application as available and fault-tolerant as feasible, on the other hand, implies a slew of challenges. In this section, we list some of the guidelines for deploying and sharing HA applications in Kubernetes, as follows:
- All containers should have
readiness probes
set up with. The kubelet agent assumes that the application is ready to receive traffic as soon as the container starts if you don't set the readiness probe. - Liveness and readiness probes shouldn't point to the same endpoint because when the application indicates that it is not ready or live, the kubelet agent detaches and deletes the container from the service.
- Running many or more than one instance of your pods ensures that eliminating a single pod will not result in downtime. Also, consider using a Deployment, DaemonSet, ReplicaSet, or StatefulSet to...