Modify Replicas
This section introduces how manually modify replicas to apply.
- You’ve walked through at least one type of application deployment.
KubeVela has a built-in Trait by default, which supports the adjustment of replicas in typical workloads, such as webservice
and k8s-objects
applications.
Next, we click the Settings (gear) button on the right side of Set Replicas to adjust replicas to 3. After clicking save, the changes will be temporarily stored.
Then to make it effective in a certain environment, we need to click the Deploy
button or the multi-environment workflow selection button next to it and select the corresponding environment to perform the deployment.
Trait can extend more powerful features, such as HPA.
For applications created using Helm or other custom deployment types, if Traits are not applicable, you can directly edit the deployment parameters to adjust the number of application instances.
Take apache chart as an example, set replicaCount=3
in Values to adjust the number of replicas.