WEBVTT 00:00.390 --> 00:07.200 Hi and welcome to Challenge to let's break this down, step one copy templated chart and rename it to 00:07.210 --> 00:13.740 challenge to this is going to be a base for the challenge that we created an if statement in the deployment. 00:14.100 --> 00:15.210 You're going to do the same. 00:15.210 --> 00:21.930 But in the service, what we want is an if statement block to check the service type, if it's of type 00:21.930 --> 00:26.520 no that we pass in the no port and we're also in need of a port in there as well. 00:27.150 --> 00:30.700 But on the other hand, if it's a load balancer, we also set the port. 00:30.930 --> 00:32.540 However, we don't need the node port. 00:32.850 --> 00:39.360 And lastly, we want a default statement says if it's a cluster IP USB port, eight thousand one hundred 00:39.360 --> 00:42.360 and eighty, it was a couple of ways you could go around doing this. 00:42.510 --> 00:46.380 You could set up different values files, but it's going to be a bit lengthy if you want to do it that 00:46.380 --> 00:46.620 way. 00:47.130 --> 00:51.180 Or the other thing we could do, again, probably not best practice, but in this example it's fine. 00:51.180 --> 00:56.100 But the challenge is to manually hard code it so we can have to write the port statement anyway. 00:56.520 --> 00:59.820 Why don't we remove it from value yaml and manually hard code? 00:59.820 --> 01:05.310 It is important, but it's not so much a hard coding part, but rather the if statement block. 01:06.000 --> 01:11.000 Lastly, for a bit of a curveball inside deployment, we have a container called Engine X container. 01:11.520 --> 01:15.720 I want you to take an entire section, turn it into a template and call it back. 01:15.900 --> 01:19.290 This is to test your templating knowledge and to put it to the test. 01:19.860 --> 01:22.950 As I always say, with all my challenges, these aren't like school. 01:23.310 --> 01:24.450 You are allowed to go online. 01:24.450 --> 01:28.680 You are allowed to look up things and you're more than welcome to go back and watch lessons again. 01:29.630 --> 01:34.310 The important thing is, is to have a go at doing it, see how you get on and learn from the challenges 01:34.310 --> 01:34.880 you find. 01:35.450 --> 01:39.000 Join me in the next lesson where I'm going to show you how to complete the challenge. 01:39.530 --> 01:40.190 Good luck. 01:40.190 --> 01:40.910 Have fun. 01:40.910 --> 01:42.740 And I'll see you in the next lesson shortly.