Oc export: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
Export objects into configuration files that can be used for backups or to create similar objects elsewhere in the cluster. Fields that cannot be specified on create, or which will be signed upon creation, will be emptied. The status part of objects is also cleared. | Export objects into configuration files that can be used for backups or to create similar objects elsewhere in the cluster. The default format is YAML. Fields that cannot be specified on create, or which will be signed upon creation, will be emptied. The status part of objects is also cleared. | ||
Options: | Options: | ||
Line 12: | Line 12: | ||
* The --raw flag <font color=red>?</font> | * The --raw flag <font color=red>?</font> | ||
* The --as-template flag generates an API structure for a template to which parameters and object labels can be added. | * The --as-template flag generates an API structure for a template to which parameters and object labels can be added. | ||
* "-o json | * "-o json" exports to JSON | ||
Line 18: | Line 18: | ||
oc export all --as-template=<template_name> | oc export all --as-template=<template_name> | ||
</pre> | </pre> | ||
<font color=red>Incomplete</font> |
Latest revision as of 00:17, 31 July 2017
Internal
Overview
Export objects into configuration files that can be used for backups or to create similar objects elsewhere in the cluster. The default format is YAML. Fields that cannot be specified on create, or which will be signed upon creation, will be emptied. The status part of objects is also cleared.
Options:
- The --exact flag configure export not to clear fields.
- The --raw flag ?
- The --as-template flag generates an API structure for a template to which parameters and object labels can be added.
- "-o json" exports to JSON
oc export all --as-template=<template_name>
Incomplete