Assume our services are expected to have a traffic spike at a certain of time. As a DevOps, you might want to scale it up manually, and scale it down after the peak time. In Kubernetes, we can use the kubectl scale command to do so. Alternatively, we could leverage a HPA to scale up and down automatically based on compute resource conditions or custom metrics.
Let's see how to do it manually and automatically in Kubernetes.