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
Copy file name to clipboardExpand all lines: modules/templates-create-from-existing-object.adoc
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,28 @@ adding parameters and other customizations as template form.
11
11
12
12
.Procedure
13
13
14
-
. Export objects in a project in YAML form:
14
+
* Export objects in a project in YAML form:
15
15
+
16
16
[source,terminal]
17
17
----
18
-
$ oc get -o yaml --export all > <yaml_filename>
18
+
$ oc get -o yaml all > <yaml_filename>
19
19
----
20
20
+
21
21
You can also substitute a particular resource type or multiple resources instead of `all`.
22
22
Run `oc get -h` for more examples.
23
23
+
24
-
The object types included in `oc get --export all` are:
24
+
The object types included in `oc get -o yaml all` are:
25
25
+
26
-
* BuildConfig
27
-
* Build
28
-
* DeploymentConfig
29
-
* ImageStream
30
-
* Pod
31
-
* ReplicationController
32
-
* Route
33
-
* Service
26
+
** `BuildConfig`
27
+
** `Build`
28
+
** `DeploymentConfig`
29
+
** `ImageStream`
30
+
** `Pod`
31
+
** `ReplicationController`
32
+
** `Route`
33
+
** `Service`
34
+
35
+
[NOTE]
36
+
====
37
+
Using the `all` alias is not recommended because the contents might vary across different clusters and versions. Instead, specify all required resources.
0 commit comments