Vertical Scaling
- Just like Horizontal Scaling, makes sure we have cluster and “kubectl”.
- Deploy components in the cluster in case they are not already established.
- Create a resource definition in a YAML file, for vertical scaling.
- Deployment of this by following command:
kubectl apply -f VerticalScaling.yaml
- Monitor the Kubernetes Deployment by following command:
kubectl get deployment verticalScalerName-deployment -n default
Kubernetes Horizontal vs Vertical scaling
In Kubernetes, scaling is the most fundamental concept that makes sure applications run smoothly and consistently. Just consider a scenario where low resources are causing the application to freeze under the existing load. One potential solution is to manually assign the resources whenever this occurs, but it will take a lot of time. This is the place where scaling(moreover autoscaling) comes into action: the ability to scale applications to meet varying needs efficiently is one of the key features of Kubernetes.