I’m using docker-compose.yml to deploy to Okteto. I’ve noticed that the .spec.containers.resources values for limits and requests are set, but have default values. I’d like to do some tuning and am wondering how best to do that in my docker-compose.yml file.
Okteto docs mention setting the resources under the service object:
However, when I tried that I got an error saying that the resources was not expected:
$ docker-compose up
services.my-service Additional property resources is not allowed
This works fine locally, and I can also deploy it to Okteto with okteto deploy. I noticed that the deploy.resources.limits section is copied into the corresponding deploy spec in K8S, so that’s part of what I need
The deploy.resources.reservations section was not copied into the K8s “requests” though. I’m still not sure how to configure that.