agiledigital / toolform

Toolform is a "DevOps" utility for defining repeatable deployment environments so that applications can be developed independently of their deployment environment.
Apache License 2.0
3 stars 3 forks source link

Support and default cpu/memory constraints #22

Open timechanter opened 7 years ago

timechanter commented 7 years ago

docker-compose and kubernetes both need cpu and memory resource indications to facilitate management and deployment. We should support the setting of these and sensible (small) defaults. Lets stick with absolute values e.g. 0.01 CPU shares, 250mb

dspasojevic commented 7 years ago

Will the defaults be nominated by the runner?

timechanter commented 7 years ago

It's a good question. Probably should be, I'm not sure if kubernetes honours the containers defines though.

timechanter commented 7 years ago

Need to ensure we can support https://kubernetes.io/docs/tasks/administer-cluster/memory-default-namespace/ options

timechanter commented 7 years ago

Looks like in kubernetes land the containers built settings are ignored, it's only the yaml that sets it.