In our design, the only component that can scale is the ASP.NET MVC frontend. SQL Server cannot be scaled as it runs in a single node with automatic failover mode. Real scaling of the SQL Server requires the use of Availability Groups (AG) and a dedicated Kubernetes Operator, as mentioned in the earlier sections.
In the previous chapter, we have shown different declarative and imperative methods on how to scale a Deployment. We will now show the safest, declarative way of scaling the Deployment. Autoscaling will not be covered as it is described in more detail in the next chapter: Chapter 11, Configuring Applications to Use Kubernetes Features. To scale the frontend Deployment from 5 replicas to 10, perform the following steps:
- Open the PowerShell window.
- Modify your existing voting-application.yaml manifest file to change the number of replicas, as follows...