OpenShift 3 install from start to finish

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello fine citizens of the Internet this is grant Shipley your friendly openshift team member and we've had some pretty great announcements over the last couple days the first one is that the open shift container platform version 3.4 has been released as well as open shift origin 1.4 has been tagged and as ready for everyone to try it out now we have a lot of different ways for you to try it out OC cluster up the all-in-one image the cdk lots of different things but I have some time today and I thought that it would be cool to just show everyone from start to finish how to actually install open shift origin on a from start to finish even starting to install the EOS so this video might get a little long you probably want to fast-forward through some of it but I am just going to start and look at those kids I'm going to be using VMware today I'm not even using VirtualBox and guess what else I'm using I'm using the Windows operating system look at that pretty fancy stuff today so I'm going to start by clicking on new virtual machine and I'm doing this in real time and so I may you know futz around a little bit trying to figure this stuff out so I'm going to do custom advanced workstation twelve installer disc I'm going to go to my was just browse look at that see what a main fussing around VMware love you hit escape and it destroyed everything so I'm just going to browse to my desktop here and I have a sense Oh f7 minimal install that I just downloaded it's like four hundred Meg's stuff like that I'm going to click on next can they call this open shift Goergen 1.4 now in this video I'm going to set this up with DMS and everything so we should be able to hit it with a web browser at the end of demo beer all right so let's click on next number of processors let's give this sucker two processors and two cores let's see I'm going to give this thing 32 gigs of ram now my machine actually has 64 because I am fancy like that and that's just the way I roll so I'm going to give this 32 gigs of RAM come on VMware you can do it all right and I'm going to use bridge networking because I want this thing to get an actual IP address of my local network select i/o controller types no idea what that is I'm just going to go with the recommendation here scuzzy sounds good alright create a new virtual disk sure let's create a new virtual disk let's give this an 80 gigs allocate disk space now let's see splitting disk makes it easier to move but may reduce performance nope I want a single single disk and let's throw this on my big fat drive here my e Drive if I can find it and we'll just call this up and shift origins save that click on next I don't think we need to customize the hardware let's just click on finish there so I am running this on a fairly recent build here that I got I am using the Intel Core i7 6700 K I got 64 gigs of ram on this box I have two SSDs and then I have a larger hybrid drive SS the hybrid that's 2 terabytes and that's where I'm storing the virtual machine and I did set it to 80 gig just because you know I have two terabytes worth of space - why not so VMware is allocating this entire disk right now so I may cut this part out for you just a little bit to save you from skipping having to skip all the way forward I thought the disc would be created much faster but oh well such as life alright I'm back I did pause it because you did gracious this thing took forever literally like 10 minutes okay so it's done now so VMware what do you do in VMware you're starting it okay so let's go to install CentOS 7 here and press the Enter key to begin the installation process alright I can do that I think I can do that let's make this a little bit bigger here that something's going on there we go okay man why are you keep messing with my terminal VMware just leave it the same size all right this is booting up the famous sent off installer and Conda should get a nice graphical user interface look at that fancy I speak English and I speak United States English so I'm gonna click continue there and let's see date and time keyboard installation source all this is popping in now installation destination that's using that 80 gig volume looks good let me go to network and hostname now this is one of my pet peeves here is the network's not on by default so I click that make sure it's done look at that speed one gigabit whoo yes and I do have gigabit internet here's IP address 0.93 local host dot local domain all good let's just go ahead and begin this installation a set of a root password here who definitely okay let's just click done and click done again let's create a user account and simply and look at that - Shipley by default I get myself a password make myself an adman got done and done again alright so this thing's installing it's like 200 packages out of 300 so we're going to let this finish now this is the sent off minimal distribution right so it doesn't have X it doesn't have any extra packages that I don't care about because I just want to run a container platform for my own personal use and I want to run origin so I don't need all this other stuff that gets installed I just want to run docker based containers and let OpenShift manage it would be a kubernetes so look the install done it's performing the post installation setup test so we'll let that finish and what's nice about the open VM tools is that once this thing reboots I should have a pretty nice interface at that point but I'm probably just going to open up my terminal and SSH into it instead of talking to it via the VMware console here so let's still finishing these post installation tasks so let's give it just a minute to finish up here alright it's installing boo boos a bunch of stuff happened there that went by too fast it's generating the indignant Ram file system alright let's hopefully this finishes here pretty quickly and so after this installs I'm going to walk through step by step on what I do so that's installed done let me reboot this mug here and we should have a minimal OS installed let me make this bigger here again so it should be coming up come on VMware you can do it there we go ooh the familiar start bars at the bottom starting wait for Plymouth okay so here we go we got a send-off box so let's log into this thing and here we go I'm logged analyst check my IP address and it is 192 168 0.93 so what I'm going to do is I'm gonna I don't like using the VMware consoles I'm just going to open up my windows terminal prompt here and I'm going to SSH into it root as 91 0 dot and of course I already forgot what love it is I can look through the transparency here 93 ok and often conflicted word password here I am outside look at less than one minute okay so we're minimal sent oh s install I'm going to start mucking around with stuff because we're gonna do is yum install and I'm going to install the equal release here get my new repo in there and the - life are not familiar with the young just doesn't it's going to go ahead and do it without prompting me if I want to okay so now we want to install a some other packages daughter I sound good we want to use the version 50% off because you get probably need get and we also use ansible because we're going to be using the hands full face installer and it's going to pull all of these packages down check in for the fastest mirror look at that there it goes it's awesome downloading 69 packages pretty fancy pretty fast installing them all pearl do you see that little pearl who uses pearl though by using pearl just kidding sorry all you pearl guys alright so this will give us docker WW get get and ansible and we're just going to check our docker version so let's do doctors and present Oh - purging say I'm running 110 3 all right perfect now I need to install a couple of other libraries here and let me make this spawn just to touch bigger for you here and I'll clear the screen gonna install - why and I'm going to insult ice on that cryptography I can spell cryptography right and then I'm also going to install PI open SSL x86 underscore 64 and hopefully I typed all that in right okay so now I have those encryption libraries the first thing we want to do is actually get the antibellum Staller and so we have kids so going to get clone a ccs of complex openshift slash open chest - ansible to enter there so now I have the Hansel Installer and now I clone my own repo here gift clone a CIS github.com test and Shipley and constant OS gets not explain what this pulls down okay so I have I clone - Rico's the ansible installer as well as my personal install window as we looking in scholarship there's the only thing this is is my inventory file this is what ansible uses to determine what result let's just take a look at my inventory file my ansible SS accuser is root my deployment type is origin I want to do the open shift origin release and I want to do the brand new one dot forward release with the image tag of 14.0 my public hostname I'm going to set the console but techno CIO and my subdomains for my deployment is going to be asked on Seoul Tokyo and I am NOT going to deploy metrics okay and so there's my actors that's literally all this is so I'm going to have one master and we're sorry one virtual machine that's going to have the master in the nose or is a to phonetic master in mania okay so that's all we need to do there the next thing I need to do because ansible is going to try to SSH to the master in case I wasn't doing this on the same box I hope that makes sense since that consult echo dot IO teens resolved yes I'm just going to edit my Etsy so Wow and and I am going to add one twin fingers or one of the console like this guy oh now we can also go to hi hi oh we should get some responses okay that's good the next thing I want to do is generate a SSH key and experiment things in here I'm gonna type in at this page if I can type today GN - PR as a I'm just going to save it in the normal spot with no passwords now I want to copy this IDE SSH copy ID group at consult architecture by oh yeah okay so all that this is going to do is copy that public key so that I can SSH into this machine from this machine without requiring a password so let me show you what I'm doing science that they threw at console dot text oh hi oh it loves me right so ants will needs that because if you are running this install from your local machine but you actually wanted to install on a send off box that's perhaps in Amazon ec2 or Google compute and you just need to be able to SSH into that machine okay believe it or not that's all we need to do we can run the installer I'm going to go back to my home directory and let's run the installer installer to do that I'm just going to say sample s playbooks SN my inventory file which I cloned from my git repo that I showed you and then I want to run the open shift and sublime playbooks py o config dot yamo and this is going to so let me hit enter here and if we have any errors where work them together so let's get this kicked off and it's starting to do a lot of stuff but this is going to install the OpenShift origin one for dot Oh tag if you wanted to install a specific version just change that inventory file that we talked about and I would suggest just cloning mine and using that as a base to create your own and now the ansible installer the playbook is going off and is configuring this base minimal installation and then after this finishes assuming we don't get any ears and if we do we'll work through them together here we'll then set up DNS so that this will actually be publicly addressable on the internet and we will create a user so that we can actually log into the system so I am NOT going to pause this I'm just going to leave this running so you can actually see how long this actually takes from start to finish in real time creating some SSL certs and things are going really quickly I'm pretty impressed with this installer and congratulations to the entire community for getting this ansible playbook created I use it quite frequently when it works pretty well I think we're getting pretty close to being done here it's getting ready to start up the master loading some temples in Bennet is doing a lot of stuff that's pretty cool open V switch nice and it's adding the NFS storage plug-in dependencies if you want to do some persistent volumes cluster FS look at that this thing is going to be awesome when he gets done and have NFS Mountain cluster safe are you kidding me heck yeah where you were getting it all here love it all right it's starting up the note here you got the master done here's the note now keep in mind both of those are going to be running on this same virtual machine with the 32 gigs of ram that are allocated to it like it's cleaning things up here at the end puppy and client binaries out of CLI to the host that's good that'll give us OC tools right on the start as well as artifact of this in school now after this what we're going to do is add an account and then we're going to set up DNS and I'll show you how I set up my zone file and all of that stuff so that DNS actually works all right looks good no errors boom boom boom boom okay so what should we do next actually let's let's let's add a user okay so I am using HTTP baseball and I believe if we go into SCE origin masters this is where the HT passengers panel is okay so what I want to do is I want to add a user is going to type of HT password - B as the person was it and master HT password and call this patiently and I'm going to my openshift as my password so now I should be able to log into this so you log in username and shipley password is token oh look at awesome we now have open ship one for installed but we're not done let's actually get our IP address camp and get our DNS working so our IP address and that's recesses let's do it this way oh gosh we set up to me doctor virtual interfaces it's one 92-93 ok so I'm going to open up Firefox here and I am just going to find out my IP address IP address and let's click on these links here and of course at the spam one great let's just try this one my IP address is nine nine six nine two two one nine nine and I am yep this is right I am on ATT u-verse in North Carolina okay so I'm going to go to my domain register and I use John D for that Godley got it but I'll show you my zone file let me log in here oh gosh I don't remember my user name password so what I'm going to do is I'm going to pause just a second and figure that out okay I figured out my username and password it's not a normal user name its link G as 771 it's a bunch of numbers to say assign okay so I have one domain here text okay oh okay so I'm going to click on this and actually I should probably click on zone I'm just trying to show you my my zone file let's see believe this one okay so here's my Jones file so I have 3a records and then AC name wildcard record okay this is just gone Dave by default ignore that so I have consoles set up as an a record to my IP address that this thing gave me okay I danced that app stop console as a record to that and then for the applications as I deploy them to actually be publicly available I need a wild-card DNS so I have a star a cname record that points to app console ask console dot txt ohio points to my public IP address I hope that makes sense okay that's how I set up my a zone file now I want to show you what to do on your router okay so this is my home router here 61 got one unable to connect why there we go let me login to my router here and I am using an Asus router so this is going to be different depending on your router but you basically want to do like a port forwarding type situation so if I go to win on mine I have a virtual server port forwarding tab and I have console Chekov I owe all of these ports go into 139 but that is not my IP address so I would just need to change that to my internal IP address which we determined was where is the game and I lose it on this stuff that's precious its dot 93 okay so let me go back into this and I'm just going to call it on gold dog tick I oh and we need to do 4 8 4 4 3 and we want to send that 191 six eight dot zero dot and of course I've got it again is 93 and local port is 8 4 4 3 so my add that and it's going to say you can't because sorry and list let me remove that one and then add it and I'm just going to do this so the other ones as well and I want to do 4 4 3 and I'm going to use this thing IP address 193 we 1 2 4 4 3 and I'm all remove what I had in there at it and we'll just use HTTP 480 and 192 168 0.93 480 removing one I have in there in the edit so left click on apply this is going to reset my router all right so now if we go back I should have everything up and running I've created an account I set up my DNS zone file I did a port forwarding on my internal router so here's the big reveal let's hope this works let's go to HTTPS console dot txt so I owe four eight four four three connections now secure we expected that because it's a self-signed search let me confirm that lovely gee Shipley Oh look at that ladies and gentlemen from start to finish in under 30 minutes a full open shift origin 1.4 latest and greatest I'm so excited really boom let's deploy something wow this is awesome all right so my first project let's just take a look at some of the things and 1.4 who leave this we now have groupings based on run time I like it I like it a lot let's the plain image from docker hub first let's do our famous phonetic deaths okay yeah let's deploy this sucker so that's downloading the kubernetes guest look up from docker hub and it's the point well yeah it's dog dumb and create a route now look I have a public URL for the guestbook application that works on the Internet look at that you can start coding in real time now this lets the police on now because this is just too good let's actually go back to our project and look at our new project overview screen let me add another one second project click on create and let's do a PHP at this time look at this and you see like it's nice and organized what version seven oh yes sorry I didn't want to do 700 PHP ass let me to get a gun they're getting repos in here yeah that should play let me find a PHP will pause the story here sure let's try this one build this much that's watch it if you love what they're doing is a download done need to refresh expand blog who look at that expand a blog I see so it's installing source it's doing the source image is pushing those layers I like the I like it I like it a lot let's go back to our overview here so look at this we now have a new project organization plumb so you can filter mmm look at this little icon here we can now do membership management I am sorry but I do get pretty excited about this stuff so here's our second project or PHP app it's up and running grant is pretty lame yes I am alright so lots of new stuff and 1.4 I'm excited about the project overview page the permissions system so you can actually work with your colleagues on specific projects I'm also excited about the secrets management so if I wanted to create a secret for like a private git repository I can do that lots of great things that you know that's a let's go for this video I'm probably record another one pretty soon but there it is ladies and gentlemen that is OpenShift origin 1.4 start to finish from scratch going from nothing to installing an OS to getting the project and solve and then all the way out to the point something from the docker hub as well as deploying something from my github repo using the open shifts source to image project I hope you guys enjoy it and let me know if you have any questions about openshift you can catch us on IRC we're on freenode and the pound OpenShift channel hop in there and ask you some questions and let us know what you think thanks everybody see ya
Info
Channel: OpenShift
Views: 54,899
Rating: 4.7853661 out of 5
Keywords: openshift docker kubernetes
Id: -OOnGK-XeVY
Channel Id: undefined
Length: 31min 59sec (1919 seconds)
Published: Thu Jan 19 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.