Okteto scaling deployment back to 1 replica

41 Views Asked by At

I am using Okteto to develop in my k8s cluster (not to deploy or build). When my deployment has 2 replicas, Okteto scales it back to 1. Is there any way to prevent this (i.e. have Okteto map my code changes into the 2 pods and not scale it back to 1) ?

1

There are 1 best solutions below

0
On BEST ANSWER

Currently, okteto is only able to synchronize changes with one pod, so it automatically 'forces' 1 replica for your dev environment.

This is a good idea though, could you open a feature request in our repo? The more you can talk about your scenario there, the easier will be for us to prioritize it.