You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preceding component references a file that is relative to the location of the devfile itself. Meaning, this devfile is only loadable by a {prod-short} factory to which you supply the location of the devfile and therefore it is able to figure out the location of the referenced Kubernetes resource list.
@@ -82,8 +82,6 @@ items:
82
82
ports:
83
83
- port: 5432
84
84
targetPort: 5432
85
-
selector:
86
-
app: postgres
87
85
-
88
86
apiVersion: v1
89
87
kind: PersistentVolumeClaim
@@ -100,26 +98,3 @@ items:
100
98
----
101
99
102
100
For a basic example of a devfile with an associated Kubernetes or OpenShift list, see link:https://github.com/redhat-developer/devfile/tree/master/samples/web-nodejs-with-db-sample[web-nodejs-with-db-sample] on redhat-developer GitHub.
103
-
104
-
If you use generic or large resource lists from which you will only need a subset of resources, you can select particular resources from the list using a selector (which, as the usual Kubernetes selectors, works on the labels of the resources in the list).
Additionally, it is also possible to modify the entrypoints (command and arguments) of the containers present in the resource list. For details of the advanced use case, see the reference (TODO: link).
Copy file name to clipboardExpand all lines: docs/modules/user-guide/partials/proc_limiting-resources-usage.adoc
+9-73
Original file line number
Diff line number
Diff line change
@@ -6,45 +6,15 @@
6
6
7
7
.Procedure
8
8
9
-
. Specify container memory limit for components
9
+
. Specify container memory limit and memory request for components
10
10
+
11
-
To specify a container(s) memory limit for `container`, `plugin`, use the `memoryLimit` parameter:
11
+
To specify a container memory limit for `container`, use the `memoryLimit` parameter, and to specify a container memory request, use the `memoryRequest` parameter:
12
12
+
13
-
.Specify container memory limit for components
13
+
.Specify container memory limit and memory request for components
14
14
====
15
15
[source,yaml]
16
16
----
17
17
components:
18
-
- name: exec-plugin
19
-
plugin:
20
-
id: eclipse/machine-exec-plugin/0.0.1
21
-
memoryLimit: 1Gi
22
-
- name: maven
23
-
container:
24
-
image: eclipe/maven-jdk8:latest
25
-
memoryLimit: 512M
26
-
----
27
-
====
28
-
+
29
-
This limit will be applied to every container of the given component.
30
-
+
31
-
For `plugin` components, RAM limits can be described in the plug-in descriptor file, typically named `meta.yaml`.
32
-
+
33
-
34
-
. Specify container memory request for components
35
-
+
36
-
To specify a container(s) memory request for `plugin` use the `memoryRequest` parameter:
37
-
+
38
-
.Specify container memory request for components
39
-
====
40
-
[source,yaml]
41
-
----
42
-
components:
43
-
- name: exec-plugin
44
-
plugin:
45
-
id: eclipse/machine-exec-plugin/0.0.1
46
-
memoryLimit: 1Gi
47
-
memoryRequest: 512M
48
18
- name: maven
49
19
container:
50
20
image: eclipe/maven-jdk8:latest
@@ -53,54 +23,21 @@ To specify a container(s) memory request for `plugin` use the `memoryRequest` pa
53
23
----
54
24
====
55
25
+
56
-
This limit will be applied to every container of the given component.
57
-
+
58
-
For `plugin` components, RAM requests can be described in the plug-in descriptor file, typically named `meta.yaml`.
59
-
+
60
-
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.
26
+
This limit applies to every container of the given component.
61
27
+
62
28
63
-
. Specify container CPU limit for components
64
-
+
65
-
To specify a container(s) CPU limit for `plugin` or `container` use the `cpuLimit` parameter:
66
-
+
67
-
.Specify container CPU limit for components
68
-
====
69
-
[source,yaml]
70
-
----
71
-
components:
72
-
- name: exec-plugin
73
-
plugin:
74
-
id: eclipse/machine-exec-plugin/0.0.1
75
-
cpuLimit: 1.5
76
-
- name: maven
77
-
container:
78
-
image: eclipe/maven-jdk8:latest
79
-
cpuLimit: 750m
80
-
----
81
-
====
82
-
+
83
-
This limit will be applied to every container of the given component.
84
-
+
85
-
For the `plugin` components, CPU limits can be described in the plug-in descriptor file, typically named `meta.yaml`.
86
-
+
87
29
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.
88
30
+
89
31
90
-
. Specify container CPU request for components
32
+
. Specify container CPU limit and container CPU request for components
91
33
+
92
-
To specify a container(s) CPU request for `plugin` or `container` use the `cpuRequest` parameter:
34
+
To specify a container CPU limit for `container`, use the `cpuLimit` parameter, and to specify a container CPU request for `container`, use the `cpuRequest` parameter:
93
35
+
94
-
.Specify container CPU request for components
36
+
.Specify container CPU limit and CPU request for components
95
37
====
96
38
[source,yaml]
97
39
----
98
40
components:
99
-
- name: exec-plugin
100
-
plugin:
101
-
id: eclipse/machine-exec-plugin/0.0.1
102
-
cpuLimit: 1.5
103
-
cpuRequest: 0.225
104
41
- name: maven
105
42
container:
106
43
image: eclipe/maven-jdk8:latest
@@ -109,9 +46,8 @@ To specify a container(s) CPU request for `plugin` or `container` use the `cpuRe
109
46
----
110
47
====
111
48
+
112
-
This limit will be applied to every container of the given component.
113
-
+
114
-
For the `plugin` component type, CPU requests can be described in the plug-in descriptor file, typically named `meta.yaml`.
49
+
This limit applies to every container of the given component.
115
50
+
51
+
116
52
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.
Copy file name to clipboardExpand all lines: docs/modules/user-guide/partials/proc_migrating-components.adoc
+19-18
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This section describes how to migrate components to devfile v2. There ARE major
6
6
7
7
.Procedure
8
8
9
-
. Component is a polymophic type
9
+
. Component is a polymorphic type
10
10
+
11
11
For a better syntax validation component now is defined as a polymorphic type and can be implemented as `container`, `kubernetes`, `openshift`, `plugin` or `volume`.
12
12
+
@@ -15,42 +15,43 @@ For a better syntax validation component now is defined as a polymorphic type an
15
15
v2.0
16
16
---
17
17
components:
18
+
- name: mydevfile
18
19
- container:
19
20
image: maven
20
21
...
21
22
- container:
22
23
image: nodejs
23
24
...
24
25
- kubernetes:
25
-
reference: https://.../mongo.yaml
26
+
uri: https://.../mongo.yaml
26
27
----
27
28
+
28
-
See https://github.com/che-incubator/devworkspace-api/issues/4[corresponding issue].
29
+
See https://github.com/devfile/api/issues/4[corresponding issue].
29
30
30
-
. Shared Volumes Across Components. See https://github.com/che-incubator/devworkspace-api/issues/19[corresponding issue].
31
+
. Shared Volumes Across Components. See https://github.com/devfile/api/issues/19[corresponding issue].
31
32
32
-
. Out of Main Pod Compoenents. See https://github.com/devfile/api/issues/48[corresponding issue].
33
+
. Out of Main Pod Components. See https://github.com/devfile/api/issues/48[corresponding issue].
33
34
34
-
. Replace Alias with Name. See https://github.com/che-incubator/devworkspace-api/issues/9[corresponding issue].
35
+
. Replace Alias with Name. See https://github.com/devfile/api/issues/9[corresponding issue].
35
36
36
-
. Renaming dockerimage component type. See https://github.com/che-incubator/devworkspace-api/issues/8[corresponding issue].
37
+
. Renaming dockerimage component type. See https://github.com/devfile/api/issues/8[corresponding issue].
37
38
38
-
. Specify sources path for containers. See https://github.com/che-incubator/devworkspace-api/issues/17[corresponding issue].
39
+
. Specify sources path for containers. See https://github.com/devfile/api/issues/17[corresponding issue].
39
40
40
-
. Specify size of volume for component. See https://github.com/che-incubator/devworkspace-api/issues/14[corresponding issue].
41
+
. Specify size of volume for component. See https://github.com/devfile/api/issues/14[corresponding issue].
41
42
42
-
. Containers endpoints (routes/ingresses). See https://github.com/che-incubator/devworkspace-api/issues/33[corresponding issue].
43
+
. Containers endpoints (routes/ingresses). See https://github.com/devfile/api/issues/33[corresponding issue].
43
44
44
45
45
46
[role="_additional-resources"]
46
47
.Additional resources
47
48
48
49
49
-
* Component is a polymophic type. See https://github.com/che-incubator/devworkspace-api/issues/4[corresponding issue].
50
-
* Shared Volumes Across Components. See https://github.com/che-incubator/devworkspace-api/issues/19[corresponding issue].
51
-
* Out of Main Pod Compoenents. See https://github.com/devfile/api/issues/48[corresponding issue].
52
-
* Replace Alias with Name. See https://github.com/che-incubator/devworkspace-api/issues/9[corresponding issue].
53
-
* Renaming dockerimage component type. See https://github.com/che-incubator/devworkspace-api/issues/8[corresponding issue].
54
-
* Specify sources path for containers. See https://github.com/che-incubator/devworkspace-api/issues/17[corresponding issue].
55
-
* Specify size of volume for component. See https://github.com/che-incubator/devworkspace-api/issues/14[corresponding issue].
56
-
* Containers endpoints (routes/ingresses). See https://github.com/che-incubator/devworkspace-api/issues/33[corresponding issue].
50
+
* Component is a polymorphic type. See https://github.com/devfile/api/issues/4[corresponding issue].
51
+
* Shared Volumes Across Components. See https://github.com/devfile/api/issues/19[corresponding issue].
52
+
* Out of Main Pod Components. See https://github.com/devfile/api/issues/48[corresponding issue].
53
+
* Replace Alias with Name. See https://github.com/devfile/api/issues/9[corresponding issue].
54
+
* Renaming dockerimage component type. See https://github.com/devfile/api/issues/8[corresponding issue].
55
+
* Specify sources path for containers. See https://github.com/devfile/api/issues/17[corresponding issue].
56
+
* Specify size of volume for component. See https://github.com/devfile/api/issues/14[corresponding issue].
57
+
* Containers endpoints (routes/ingresses). See https://github.com/devfile/api/issues/27[corresponding issue].
0 commit comments