 Hey everybody, this is Grant your friendly neighborhood OpenShift team member in this video I'm just gonna do a quick update on how to install the latest OpenShift Origin 371 onto Sentos So I'm gonna start from scratch here. Yeah, and you can see I am running the famous Microsoft Windows operating system Windows 10 Pretty fancy stuff here. Alright, so let's go ahead and get started. So I'm gonna start with a VM where Virtual machine and so I'm just gonna create a new one here So I'm gonna say new virtual machine and apologize if this is hard to see I can't actually increase the font size of the VMware and I am also doing this in real time. So let's see what we got going on here So yeah, it sounds good Installer disk I have sent us minimal. That's my installer disk and I'm gonna use so click on next there I'm just gonna call this tech dope because that's the Name of the site. I'm gonna use it's gonna be stored on my eDrive, which is a SSD We're gonna give this a single proc and maybe For course. All right, click on next. Let's give this 16 gigs of memory. I have 64 in this machine. So I'm just gonna leave it at 16 I'm gonna use bridge networking. So it gets its own IP address Just click on some defaults here create a new virtual disk 20 gigs. Let's give it, you know Let's give it a hundred gigs. Why not? click on next and next and Let's customize the hardware real quick. Just make sure everything's good 16 gigs for processors The install ISO bridge networking all looks good. Click on finish And this should start it up here Me resize this window for you and I'm gonna click on install sent us here Put my mouse in here. Let's see There we go. And this is a 4k display But I'm gonna render it at 1080 so hopefully that will make a Difference you can see the fonts a little bit better here better Let's press enter key to begin installation. All right, we can do that. Maybe we can do that It's probably creating them disk on the Underneath which took a few seconds So we are gonna start from scratch, you know, I'm gonna install sent us and then I'm gonna update it and We're gonna do everything from from the basics and we'll even set up DNS at the end so I'm just gonna use English English and My installation source, it's gonna fill that in in just a second the installation destination I'm gonna put it on this hundred gig Drive here and I'm gonna configure the partitioning myself and then I'm gonna click on done and then I'm gonna create a Standard partition and I'm going to create a boot Maybe I don't have to create a boot EFI on this one. So let's create a maybe a 8 gig swap partition So 8gib and then we're gonna create a 92 gig Root partition and we're gonna click on done and accept changes and That's all there is to it So that's actually one more thing. Let's click on network and hostname and turn the internet on it by default the Nick card is not enabled. I don't know why that is but we want to enable that by default now We're gonna click on and begin installation. We're gonna set a root password here And it's a weak password, but that's cool. Click done twice We're gonna create a user G ship leave make me an admin Give it a password again Another weak password click on done and done again, and it's almost uninstalling It's on package 230 right now 245 We'll give this a second here. I wonder if I could zoom this in. I don't know how and feel where maybe we could click one of these but Enter full screen. Let's see what happens. Yeah, that didn't really help much today Well, that's cool. All right So it's doing the post installation test and once this is finished installing We'll just SSH in and then you'll be able to see the screen a lot better still waiting on this And then once this is done I'll just click on I finished installing down here on the right hand Corner and then we'll reboot the machine and then we'll update it And go from there. All right. Yeah, it's almost done Okay, it's done. So I can say I finished installing and then I'm gonna click on reboot And this will reboot the machine Go ahead and start that up and once it boots up. I'll open up a terminal and Well SSH and once we get the IP address Okay, so it looks like we're all good. Let's go ahead and log in here And I'll just get the IP address real quick and it is 0.15. All right, so I'll bring this over and Let's make the font size a little bit bigger here I don't know how to actually do that in this terminal emulator. So let's go to settings And let's make the font like 30. That should be good for you So let's clear the screen now we want to SSH and so it's 192.168.0 15 Let me authenticate Okay, so now I'm on this fresh machine. The first thing I want to do is young update to get all the latest updates since I downloaded this Minimal version of sentos which has actually been quite a while ago. So we got 186 packages That needs to be updated and I have Gigabit so it should go pretty fast here Almost done with the download about halfway done. All right, it's a Finish pulling everything down. So now it's actually gonna Install everything and then once it installs it's gonna clean up if you've used Linux before you know that this is the standard process downloads updates and then cleans up At the end It's got 418 packages left or total to do about 300 left And what I generally like to do is after I do an update like this Especially if it pulled a new kernel down is I go ahead and reboot the system into a Into the new kernel So we'll do that as well. Let's get some SE Linux policy And again, if you're familiar with installing Linux and updating that and creating VMs may Have fast forwarded through this part, which is completely fine But I did just want to show a real-time Install and I did see that it pulled down a new kernel So I am gonna update now. It's cleaning up. All righty looks to be done Should give us our Command prompt back here and just a second and then I'm actually gonna reboot the machine. So let's uh I'll have this one available at the same time. So we can select that new kernel as well Let's see. It's still doing something. I wonder if I should have given it more All right, so there we go. We're all good Let's go ahead and shut down that's our now to reboot it and that's gonna sever my connection And if we go over here, we should see a Reboot happening. So I'm gonna go ahead and select that new kernel in the VMware Window and that's gonna boot it up. So I'll release the cursor and come back over to my Terminal here And I am using Z shell on Windows Which is cool All right, so now we're locked into the sent us box a few things I want to do so I want to yum install get and Let's do Docker and Let's do net tools We'll pull on that damn And the reason I wanted to install get is I've created a repository That quite a few people out in the community has contributed to as well to really streamline the process of Installing open shift origin on sent us. So I'm just gonna walk you through How I install it and I do install it quite frequently. So now I have get Docker and net tools installed so I can do with config now To get my IP address instead of type an IP a DVR. That's just the way Done it my whole life. So I like if config. All right, so let's go open my browser here and let's go to github.com slash gshippling and We'll go here and I'll click on my repositories and I have this install sent us repository That I updated 10 days ago to update to 371 And this is the video that I'm working on right now. That's going to replace this link in there So what we want to do, I'm just gonna clone this. That's just the way I like to work You don't actually have to clone it, but let's go ahead and do that. So I'm gonna get clone link in So now I'll have this install sent us repo if we go back. We can see that we need to Export our domain So I'm gonna copy that Actually, let me make this a little bigger for you so you can see what I'm doing here I'm so I'm gonna export domain equals. Okay So let me paste that in and my domain is tech dope.io That's the domain I'm gonna use. So let's go back and see what else we need to do We need a username and a password All right, we can do that. My username is gonna be gshipply and my password is going to be Gshipply. Okay. So now we have these three things Defined and in this repo there is a shell script Install OpenShift sh and You can see it takes reads for Environment variables domain username and version and you can see that I default the version to 371 which is the Latest version if you want to run any previous version you can just Put your own version tag in there So I am going to go ahead and run this install script And I hate the windows bill. So I'm just gonna say install open shift sh Click on install And that is going to run through install all of the packages and set up everything that I need And it's gonna call the ants will playbook under the covers. It's gonna check it out It's gonna do all of that stuff from git or clone it not check it out and At the end of about 20 minutes or so I should have a freshly installed open shift origin 371 Install and what's interesting about this is logging a metrics Will be installed and the way that's determined if you don't pass it in is if you assign More than eight gigs of RAM or if more than eight gigs of RAM is available on the machine It's installing to it will install logging and metrics anything less than eight gigs it assumes that you Don't have enough resources for those two components on top of all the containers that you're gonna be deploying some of go ahead and let this run and Feel free to fast forward. I'll try to speed it up if I can and We'll see how long it took since the 137 p.m. Today. All right, ladies and gentlemen, we are Almost done. They install that it's completed and now it's creating my user account and Now open shift is up and running and it is 153 So that took about 16 minutes pretty sweet. All right So the next thing I want to do is Add this to my router so that my hostname works You can see it added a ton of Interfaces here, but I know that my IP address is zero dot 15 So let's pop back over to our Browser, I'm gonna log into my router here and set up a port forward and I'm going to Delete the ones that already have there and I'm gonna add a Tech dope entry here and I want to forward for a 443 To 192.168.0 dot 158 443 add that one I'm gonna add one for port 80 as well same local IP address 80 and that and one last one for 443 Dot 15 443 Click on apply and this will set up a port forwarding rule for my Router so now if we go to if config dot co we can see that my External IP address is this one. So to set this up you would go to your domain registrar Minus Gandhi, so may log in the Gandhi here and Make sure that this is set up correctly for our DNS records. So let me go to my domains and We'll find tech dope dot IO click on that one look at the DNS records and we can see that Console dot tech dope dot IO is going to seven one four eight eleven dot three seven one four eight eleven dot three So what happens is when a user types in console dot tech dope died at IO and Their browser it's going to contact Their DNS and the DNS is going to return this IP address seven one four eight Eleven dot three which is my external IP address that my ISP gives me When they connect a port eight four four three of this IP address That's where that port forwarding on the router is going to come in It's going to send those ports over to my open ship server. So let's try this out Let's go to console dot tech dope eight four four three clicking on advanced And let's log in here g ship Lee and I believe I set the password is g ship Lee as well And boom there we have an open shift origin up and running and this is the service catalog That you can use to deploy things from so let's click on the question mark click on about We can see that this is running open shift origin three seven one And kubernetes 176 So let's go ahead and write a new project here and test this out Grant project click on create So now we have a project Air getting metrics. Okay, so let's Accept the metric certificate done. Okay, so let's browse our catalog. Let's deploy a Little php app here It's like php click on next Add this to grant project and get Get hub dot com slash g ship Lee simple php dot get oh Dang it that should go here And the application name is just going to be called simple php And we're going to click on create We go to project overview page. We can see that my build failed So let's see. I must have put in the Wrong repo. So let's go ahead and change that we'll go to build build configuration And this is where you can see where the source repo is you can edit that So let's find the actual source repo that I want to use here Let me just head over to get hub real quick go to Repos here it is And of course it was the wrong one. So let's paste that in And we're going to save this. This was actually good So you can see how to change a get repo in your build So let's go ahead and start a new build there And we can see that that build is running now. We can look at the logs here So it's cloning that repository and now it's going through the source to image process So it's going to clone that repository and It's going to create a new container image on the fly With that source code in it and then push it to the internal registry and The openshift registry and so we can also look at the logs right here. It's pushing the layers in So all that's running now and it's deploying that image So now my app is deployed and it created a route for me. That's publicly available On the internet So let me click on that and we can see welcome to openshift version 3.7.1 So pretty fancy stuff. So we should also have metrics running here So it's going to load those metrics. Sure enough. Metrics was installed. So that's awesome Logs we also have the archive logs or the logging stack that's installed by default Why don't you accept this security certificate? So here is cabana And so we can look at all of the the logs for that. So let's go back So that's all there is to it to install openshift 3.7.1 On a sentos box. It's a pretty fast straight board process And again, I would like to thank everyone who helped contribute To the install Sentos repository There's been five people so far and it is just a shell script That will go through and install everything for you, which is awesome And it is using the ansible playbook under the covers. All right, so that's it. I hope you enjoyed this video See you later