 Okay, the first service that we need to worry about is my SQL. So you can see up here on the screen I've got the Docker compose file for that and we can see on line three That's where the service is defined. It's coming from the image my SQL with the tag of five dot seven And then we are setting up two environment properties So we need to replicate this in a Kubernetes context So what I'm going to do is come over to the command line And we are going to issue the command Cube control Create deployment We're going to call this my SQL as the service name And we'll say image You know, we're going to be doing the image of five dot seven my SQL five seven We want to say drive run And this is just going to tell it to drive run it not actually create it and We want the output to be YAML. So minus 0 for output YAML and Then we are going to pipe it to a file. So this if you're on Windows, I don't know if this will work for you It's been quite a quite rusty with Windows command line, but in a any bash environment or Unix type environment should be just fine. And we are going to say my SQL I'm going to say my SQL deployment. I'm going to use the shorthand of YAML. So this will create the file for us You can see there's the file and What we need to do is we need to edit that I'm going to toggle over to IntelliJ to do the editing there. I could use VI but for editing YAML IntelliJ is a little bit nicer for that So if I come in here and we take a look at the scripts, there's the my SQL deployment You can see that it is highlighted in red I will be adding that to the github repository for your reference We're going to see me create all these in this and Here is the file the specification that was created for the deployment in a kubernetes context Yeah, you can see under inspect containers image 5.7 resources Now what I want to do is say ENV for environment and this is going to take a map of properties of name value pairs. So we want to say name Value I'm coming up with the ever so great of DB password Then also we need to initialize the database. So we'll say name and it's just going to be beer service And all the the microservices are configured to use the same same database We could create multiple schemas if we wanted to but again just for pragmatic state We're not over complicating things here So we can see my a scale root password my SQL database is being set and the environment properties and We come back over here to the compose file. You can see We have a slightly different syntax, but my a scale root password is equivalent to this and then This my a scale database that is the equivalent to That there so let's come back over to the command line now and we'll apply that so we can say apply minus F And we can see the my a skill deployment and that is created clear the screen here Then we want to create a service for this as well to expose the database as a service Create service. I'm going to give it a cluster IP. So this is going to be exposed It's going to be for my SQL and we want to say TCP. So we're going to expose a port And this is a default port. This is where the communications to my a skill database is going to occur over this port Say drive run minus oh equals YAML and here we are going to pipe it to another file and we will say my SQL Yml like so I got mistake here And see that I'm mistyped here. So it should be equal client try that and that applied and Now we can do an LS and we see I've got two Yml files here Some people prefer to put everything into a single Yml file So you can do a three-dash separator to between chunks of Yml to combine them into one for the purposes of this course I'm going to do separate files just for I think it's going to be a little bit easier for people working through the course and I'm going to follow in the convention of service dash deployment service dash service So now we need to go ahead and apply the service And we see a cube control apply minus of service That is created and we can see and now doing a cube control get all we can see that I have Kubernetes is running and we can see that the my SQL services up and running and then We see this here. I'm sorry the pod. Here's a pod That is the deployment and here's the service. So We are up and running properly. So everything looks good here And I'm going to clear that and in the next video. We will tackle taking care of the JMS service