From the course: OpenShift Essential Training: Container Orchestration and Deployment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Solution: Deploying a database

Solution: Deploying a database

(bright music) - [Instructor] Let me show you my way of solving each task within this challenge. Keep in mind, mine is not the only way and there are multiple ways of achieving the same outcome. So for our first task, we need to create a one gigabyte persistent volume claim called DB PVC. Let's see how that can be done. I'll switch over to PowerShell. I will use the OC login command to log in as the user developer. Next I will create a new project called Challenge using the OC new project command and I will clear the screen. I'll create a directory called Challenge and I will change directory to it. Here I will use Notepad to create my pvc.yml and I will create my PVC definition file. So let's get started. API version, V1. Kind, persistent, volume, claim. Metadata name DB PVC. Spec, here I will define the access modes. So read, write once. Resources, which I'm requesting. Requests storage one giga. And I will save then exit. Now I will create the resource by using OC apply minus F…

Contents