Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions modules/templates-create-from-existing-object.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,28 @@ adding parameters and other customizations as template form.

.Procedure

. Export objects in a project in YAML form:
* Export objects in a project in YAML form:
+
[source,terminal]
----
$ oc get -o yaml --export all > <yaml_filename>
$ oc get -o yaml all > <yaml_filename>
----
+
You can also substitute a particular resource type or multiple resources instead of `all`.
Run `oc get -h` for more examples.
+
The object types included in `oc get --export all` are:
The object types included in `oc get -o yaml all` are:
+
* BuildConfig
* Build
* DeploymentConfig
* ImageStream
* Pod
* ReplicationController
* Route
* Service
** `BuildConfig`
** `Build`
** `DeploymentConfig`
** `ImageStream`
** `Pod`
** `ReplicationController`
** `Route`
** `Service`

[NOTE]
====
Using the `all` alias is not recommended because the contents might vary across different clusters and versions. Instead, specify all required resources.
====