redhat-developer / opencompose

OpenCompose - A higher level abstraction for Kubernetes Resource
Apache License 2.0
64 stars 12 forks source link

Support for `resources` per container in OpenCompose #123

Open surajssd opened 7 years ago

surajssd commented 7 years ago

Every config that is out there and needs to be deployed in production has resources defined in there. How about we add support for that in OpenCompose.

Resources info:

$ kubectl explain deployment.spec.template.spec.containers.resources
RESOURCE: resources <Object>

DESCRIPTION:
     Compute Resources required by this container. Cannot be updated. More info:
     http://kubernetes.io/docs/user-guide/persistent-volumes#resources

    ResourceRequirements describes the compute resource requirements.

FIELDS:
   limits       <object>
     Limits describes the maximum amount of compute resources allowed. More
     info: http://kubernetes.io/docs/user-guide/compute-resources/

   requests     <object>
     Requests describes the minimum amount of compute resources required. If
     Requests is omitted for a container, it defaults to Limits if that is
     explicitly specified, otherwise to an implementation-defined value. More
     info: http://kubernetes.io/docs/user-guide/compute-resources/

Docs about resources, and API reference.