Page
Export objects from an OpenShift cluster
Moving objects from one OpenShift cluster to another involves exporting the objects as YAML files and then creating the objects in the target cluster.
In order to get full benefit from taking this lesson, you need to:
- Have access to the OpenShift dashboard.
- Have access to the command line with the
oc
command.
In this lesson, you will:
- Export objects as YAML files.
Export objects as YAML files
To start, make note of the application you wish to export; you’ll need this later.
In the Developer perspective of the OpenShift dashboard, you will see the link, Export application (Figure 1).
Click this link to begin the process. After a few minutes, the download link will appear.
After a few minutes, the download link will appear. Click the download link to download your application as a zip file containing all of the YAML files to describe the resources in your sandbox cluster.
That last part is important, because while the export gathers all of the resources, you’ll only want to import the objects related to your application—which you made note of at the start.
The next step is to remove objects that are not part of your application and then import the application to a cluster.
Summary
You can deploy services to an OpenShift cluster from within the web-based dashboard.
Want to learn more? Try these:
- OpenShift for Developers e-book.
- Numerous cheat sheets.