WEBVTT 00:00.570 --> 00:01.680 Hi and welcome back. 00:02.100 --> 00:03.750 How did you do with a challenge? 00:04.140 --> 00:05.350 Were you able to complete it? 00:05.760 --> 00:07.680 Let's jump into how to complete it now. 00:08.220 --> 00:09.180 So first thing's first. 00:09.180 --> 00:11.180 I'm going to go to my incinerates tomorrow. 00:11.190 --> 00:16.510 So I'm going to click on V and go to inspirited terminal inside the home folder. 00:16.530 --> 00:23.410 So what I want to do now is type in help create a chart name, which is going to be challenge answer. 00:23.770 --> 00:24.300 Very good. 00:24.450 --> 00:24.810 Done. 00:25.860 --> 00:29.460 Now, if we look at the Explorer, I can see I've got a phone here called Challenge. 00:31.380 --> 00:36.270 So step two, we need to remove certain files and folders, so the first one to go is going to be test. 00:38.270 --> 00:39.730 We're not going to use the help us file. 00:39.950 --> 00:45.620 I'm not going to use the ingress notes or the service account so we can go in what I said about the 00:45.620 --> 00:47.720 labels that we all could have to manually set it. 00:47.960 --> 00:53.600 I'm going to leave a name for now first, but I'm interested in is this behavior labels so is going 00:53.600 --> 00:55.940 to be called App Kolon Apache. 00:56.570 --> 01:00.890 I would go ahead and copy that if we go match labels thing good. 01:02.540 --> 01:03.590 And it's in simply her. 01:05.640 --> 01:11.820 Now, time to do a bit of housekeeping, so let's get rid of all this from containers up to spec that 01:11.850 --> 01:13.710 need the security context. 01:16.990 --> 01:21.660 They could use deployment name for the container name in this case, I'm just going to call it Apache 01:22.000 --> 01:22.840 to manually set it. 01:23.780 --> 01:26.330 Don't need the image policy that can go. 01:29.130 --> 01:33.000 And from Lowden's pope, overweights at the bottom, that can go. 01:36.540 --> 01:40.280 It's quite a bit to strip out the deployment, but we're pretty much bare replicas. 01:40.410 --> 01:45.380 We didn't specify anything so we can leave it as is or we could set that to one. 01:45.660 --> 01:49.920 And the name will come back to you shortly over to the service label. 01:50.020 --> 01:53.580 Same again at Apache and Selecter. 01:54.150 --> 01:57.720 Also set back to the label where so we're pretty much there now. 01:57.930 --> 01:59.250 We've done step one and step two. 01:59.340 --> 02:01.710 Now we've got step for what we're going to start templating. 02:01.710 --> 02:04.710 And to begin with, we're going to work with the deployment. 02:05.490 --> 02:07.110 So go over to values that YAML. 02:07.710 --> 02:09.510 I manually separate account. 02:09.810 --> 02:14.670 So I'll but up we don't need these image secrets. 02:15.120 --> 02:18.840 Removalist don't need the service account that can go. 02:20.870 --> 02:26.990 And we don't need port security context or the security context, they can all go and now we've got 02:26.990 --> 02:29.930 to service everything below that can go. 02:30.450 --> 02:36.050 So stop with the deployment, as I mentioned before, in a less than personal preference is let's give 02:36.050 --> 02:36.500 it a name. 02:36.500 --> 02:38.380 So it would be deployment. 02:38.540 --> 02:43.670 And then under everything inside that is specifically for deployment, you could leave it as is would 02:43.670 --> 02:44.090 the image. 02:44.090 --> 02:49.100 And that would be perfectly fine if you put a bit of his challenges is not so much copying word for 02:49.100 --> 02:55.310 word or exactly how I did it, but more also having a good doing it and making sure your solution works 02:55.310 --> 02:57.380 and we achieve the same end goal. 02:58.100 --> 03:00.770 So we've got deployment at a curtain to the end. 03:02.630 --> 03:03.770 And now it's on to indents. 03:06.830 --> 03:10.730 So we said we need a name and we're going to call this challenge. 03:12.480 --> 03:17.760 The image now, of course, that repository here, I'm going to call it image, and we said it's going 03:17.760 --> 03:19.020 to be TPD. 03:19.710 --> 03:23.900 And we also need to set a version so version out. 03:23.920 --> 03:25.290 So it's going to be two point four. 03:27.530 --> 03:28.110 There we go. 03:28.250 --> 03:30.960 That's a deployment done now needs to be templating. 03:31.670 --> 03:35.360 So now let's start from scratch. 03:37.980 --> 03:42.600 Values, taught deployment, taught name. 03:43.700 --> 03:48.800 Now, if you left it and made a minor change, that's absolutely fine and we can see here in Image, 03:48.980 --> 03:50.340 it's pretty much set for us. 03:50.360 --> 03:52.190 We all have to make a couple of little tweaks. 03:52.190 --> 03:53.530 So let's start with that. 03:53.950 --> 03:58.730 So you got values image because I put mine inside deployments. 03:59.080 --> 04:01.640 Lovatt image deployment. 04:03.140 --> 04:08.810 And looking back at values, the level of quality, image, image, again, we use up anyway, so the 04:08.810 --> 04:09.890 image, that image. 04:11.900 --> 04:19.520 And now we need certain versions, so it's going to be dot values, dot deployment, dot image, dot 04:19.520 --> 04:23.580 version, I don't quite like having an image twice. 04:23.690 --> 04:25.850 I'm going to change this out to app. 04:27.160 --> 04:33.040 Personal preference, I just don't think it looks very nice here, having image the image so it at Severiano, 04:33.040 --> 04:34.530 that is a deployment done. 04:34.540 --> 04:39.350 Let's work with the service, a step for step forward. 04:39.350 --> 04:43.170 We've got the type, so need to sort that out and we've got the port now. 04:43.180 --> 04:44.560 We said that's also going to be sexy. 04:44.560 --> 04:49.390 Port 80 Target Port is also going to be Port 80. 04:49.690 --> 04:51.510 What we need to do is set the node port. 04:52.000 --> 04:54.250 So it will do is a lot of it's a node port. 04:55.690 --> 04:58.390 So we'll set the node for here and we'll template that shortly. 04:58.400 --> 05:00.130 So let's have a service type. 05:01.330 --> 05:03.480 So we need to change that to no port. 05:03.940 --> 05:07.330 We could leave this port as this instead of giving it the name it no port. 05:07.330 --> 05:08.410 So it's perfectly fine. 05:08.800 --> 05:10.420 We don't need to rename this value here. 05:10.570 --> 05:15.190 So we could do is simply just leave it as is and put in the No port. 05:15.190 --> 05:22.950 No we want so three one, two, three, four or thirty one thousand two hundred and thirty four lossing 05:22.990 --> 05:28.900 we need to do is also had the name which we said is going to be Challenge SBC. 05:30.170 --> 05:33.500 Now, let's go ahead and play that up, so a name. 05:35.900 --> 05:42.670 Is that values, dots, service, dot name, the type is fine. 05:43.070 --> 05:52.300 And lastly, we've got set the nopal, so do not values, not service, not pork as on a demo. 05:52.310 --> 05:56.030 When I did it, I report to port target port and no port. 05:56.330 --> 05:59.420 But this example, it's fine because we're only setting the node port here. 05:59.990 --> 06:03.500 So steps one, two, three, four and five done. 06:03.530 --> 06:05.240 Up next is to go ahead and deploy it. 06:05.510 --> 06:06.470 So let's give it a go. 06:07.220 --> 06:08.630 Go to our integrated terminal. 06:10.190 --> 06:11.360 I'm inside the home folder. 06:11.450 --> 06:13.700 So now we're going to feed into the challenge folder. 06:15.970 --> 06:23.620 So minimize this and now let's go ahead and run it home, install the name, symbolical his challenge 06:24.760 --> 06:29.500 and full stop for a context inside this folder here and go ahead and hit enter. 06:34.060 --> 06:35.650 Now, Sportive is here to challenge. 06:36.740 --> 06:40.190 And we will see the error, which was Part Potami issue. 06:41.140 --> 06:46.090 Unfortunate, it was a bit of a that was a bit of a mistake, my end, so the name here, deployment 06:46.090 --> 06:50.860 image name, whereas here in deployment we can see its values deployment name. 06:50.870 --> 06:53.020 So we need to do is take that value out. 06:53.780 --> 06:58.180 Again, this is what I think is really useful going for this British show, mistakes that were made, 06:58.180 --> 07:02.980 because let's be honest, sometimes we all make them, but also good practical hands on experience for 07:02.980 --> 07:06.400 getting used to editing and making the changes and also troubleshooting. 07:07.090 --> 07:10.570 So we do see that message move in lightly is something is missing. 07:11.420 --> 07:12.760 So in this case, it was a deployment. 07:12.770 --> 07:14.490 No values, not deployment. 07:14.590 --> 07:14.930 No. 07:15.490 --> 07:19.690 And now if we look at the values, its values, deployment, Dutney, that work. 07:20.200 --> 07:21.940 So now if we go back to a terminal. 07:24.980 --> 07:28.720 Now, come on again, help install challenge, full stop. 07:30.390 --> 07:31.020 Excellent. 07:31.050 --> 07:31.920 That's not deployed. 07:33.220 --> 07:34.630 Now going to open up my other terminal. 07:34.750 --> 07:37.720 It's easy to see and now run help list. 07:38.770 --> 07:39.220 Awesome. 07:39.220 --> 07:42.040 So I can see Challenge and now could open up my browser and check. 07:42.040 --> 07:42.700 It all works. 07:44.380 --> 07:45.310 So I have my browser. 07:45.320 --> 07:47.740 Next one I need to do is get VIP. 07:47.740 --> 07:51.910 So to do that, we run mini CUV IP. 07:53.670 --> 07:54.270 Excellent. 07:55.930 --> 07:58.690 Copy that and then go over to our browser. 08:00.530 --> 08:07.040 Payslip and lost the airport number for a Newport, she's thirty one thousand two hundred and thirty 08:07.040 --> 08:11.030 four, go ahead and enter and exit. 08:11.040 --> 08:12.350 That's the thing we want to say. 08:12.740 --> 08:13.520 It works. 08:14.120 --> 08:14.750 They used to move. 08:14.750 --> 08:18.320 Apache used to get this nice picture in the British version. 08:18.320 --> 08:19.730 We get this message here. 08:19.730 --> 08:20.390 It works. 08:20.390 --> 08:21.320 And that's the important bit. 08:21.740 --> 08:25.430 Our solution, what we set up and a home, it works. 08:25.610 --> 08:26.350 That's awesome. 08:26.750 --> 08:28.400 Last step is to tear it all down. 08:28.760 --> 08:32.780 So to do the hell uninstall challenge. 08:35.600 --> 08:40.280 I we go about stuntwomen and to double check, if I go over to my browser and they enter. 08:40.730 --> 08:41.260 There we go. 08:41.320 --> 08:44.110 Can't be reached, says all been torn down. 08:45.210 --> 08:46.440 How did you find a challenge? 08:46.650 --> 08:51.390 It's a lot to take on board, especially if you burn you to hell, but you've learned so much go for 08:51.390 --> 08:54.180 this challenge already and you're in a fantastic position. 08:54.360 --> 08:55.770 So pat yourself on the back. 08:56.070 --> 08:57.420 You've done a fantastic job. 08:57.600 --> 08:58.350 In the next section. 08:58.350 --> 09:01.400 We're going to keep expanding our knowledge and help for senior.