Components
Deploying a devfile registry
Procedure
Specify container memory limit for components
To specify a container(s) memory limit for
container
,plugin
, use thememoryLimit
parameter:Specify container memory limit for components
devfile.yamlcomponents: - name: exec-plugin plugin: id: eclipse/machine-exec-plugin/0.0.1 memoryLimit: 1Gi - name: maven container: image: eclipse/maven-jdk8:latest memoryLimit: 512M
This limit will be applied to every container of the given component.
For
plugin
components, RAM limits can be described in the plug-in descriptor file, typically namedmeta.yaml
.Specify container memory request for components
To specify a container(s) memory request for
plugin
use thememoryRequest
parameter:Specify container memory request for components
devfile.yamlcomponents: - name: exec-plugin plugin: id: eclipse/machine-exec-plugin/0.0.1 memoryLimit: 1Gi memoryRequest: 512M - name: maven container: image: eclipse/maven-jdk8:latest memoryLimit: 512M memoryRequest: 256M
This limit will be applied to every container of the given component.
For
plugin
components, RAM requests can be described in the plug-in descriptor file, typically namedmeta.yaml
.If they are not specified, the values are undetermined: they may or may not be inferred from the application that consumes the devfile or from Kubernetes.
Specify container CPU limit for components
To specify a container(s) CPU limit for
plugin
orcontainer
use thecpuLimit
parameter:Specify container CPU limit for components
devfile.yamlcomponents: - name: exec-plugin plugin: id: eclipse/machine-exec-plugin/0.0.1 cpuLimit: 1.5 - name: maven container: image: eclipse/maven-jdk8:latest cpuLimit: 750m
This limit will be applied to every container of the given component.
For the
plugin
components, CPU limits can be described in the plug-in descriptor file, typically namedmeta.yaml
.If they are not specified, the values are undetermined: they may or may not be inferred from the application that consumes the devfile or from Kubernetes.
Specify container CPU request for components
To specify a container(s) CPU request for
plugin
orcontainer
use thecpuRequest
parameter:Specify container CPU request for components
devfile.yamlcomponents: - name: exec-plugin plugin: id: eclipse/machine-exec-plugin/0.0.1 cpuLimit: 1.5 cpuRequest: 0.225 - name: maven container: image: eclipse/maven-jdk8:latest cpuLimit: 750m cpuRequest: 450m
This limit will be applied to every container of the given component.
For the
plugin
component type, CPU requests can be described in the plug-in descriptor file, typically namedmeta.yaml
.If they are not specified, the values are undetermined: they may or may not be inferred from the application that consumes the devfile or from Kubernetes.