Chapter 7. Creating and managing persistent storage
This chapter covers
- Using the system:admin user to administer your cluster
- Attaching persistent storage to applications
- Making remote storage available in containers
- Removing persistent storage from applications
- Cleaning up persistent storage volumes
We haven’t discussed what your first application deployed in OpenShift does. We noted that the application you deployed using the image-uploader source code was written in PHP. Here are a few additional application features:
- Uploads images from your workstation
- Shows you those images as thumbnails on the application page
- Verifies that what you’re uploading is a standard image format
- Shows you the full-size image when you click it
It’s not the next Instagram, but it’s simple enough to live in a couple of files of source code and be easy to edit and manipulate in OpenShift. You’ll use that simplicity to your advantage in this chapter.
If you haven’t already, go ahead and test out the Image Uploader app, and upload an image or two (or three or four or more!) into the app-cli deployment. After you do, your application should look similar to figure 7.1. For the examples, I uploaded a meme, a picture of my super-cute daughter, and a photo of Dan Walsh.
Figure 7.1. Image Uploader after a few pictures have been uploaded. I (Jamie) uploaded a meme, a picture of my daughter, and a photo of Dan Walsh.
