Static provisioning – Managing Advanced Kubernetes Resources-2

As the Service resource is created, we can create a StatefulSet resource that uses the created PersistentVolume and Service resources. The StatefulSet resource manifest, nginx-manual-statefulset.yaml, looks like…

Horizontal Pod autoscaling – Managing Advanced Kubernetes Resources-2

Now, let’s autoscale this deployment. The Deployment resource needs at least 1 pod replica and can have a maximum of 5 pod replicas while maintaining an average…

Horizontal Pod autoscaling – Managing Advanced Kubernetes Resources-1

Imagine you’re the manager of a snack bar at a park. On a sunny day, lots of people come to enjoy the park, and they all want…

Name-based routing – Managing Advanced Kubernetes Resources

Name-based or FQDN-based routing relies on the host header we pass while making an HTTP request. The Ingress resource can route based on the header. For example,…

Important note – Managing Advanced Kubernetes Resources

Remember that Ingress rules take a while to propagate across the cluster, so if you receive an error initially when you curl the endpoint, wait for 5…

Ingress resources – Managing Advanced Kubernetes Resources

Imagine you have a beautiful front entrance to your restaurant where customers come in. They walk through this main entrance to reach different parts of your restaurant,…

ClusterIP Service resources – Managing Advanced Kubernetes Resources

ClusterIP Service resources are the default Service resource type that exposes pods within the Kubernetes cluster. It is not possible to access ClusterIP Service resources outside the…

Best-effort controlled rollout – Managing Advanced Kubernetes Resources

Best-effort controlled rollout helps you roll out your deployment on a best-effort basis, and you can use it to roll out your release faster and ensure that…

Ramped slow rollout – Managing Advanced Kubernetes Resources

If you have numerous replicas but want to roll out the release slowly, observe the application for any issues, and roll back your deployment if needed, you…

Kubernetes Deployments – Managing Advanced Kubernetes Resources

The need for advanced Kubernetes resources In the last chapter, we looked at pods, the basic building blocks of Kubernetes that provide everything for your containers to…