How to Update a K8s Deployment with More Replicas
You can do this in two ways. Either imperative - a quick command Or declarative - good for a production environment where you store your Deployment-manifest in Git.
Imperative way: (this will then diverge from what you have in your yaml-file)
kubectl scale deployment mage-di --replicas=2
Declarative way, edit this line in your Yaml file:
replicas: 2
then apply it to the cluster with:
kubectl apply -f k8-deployment.yaml
See also: