Hi and welcome to Challenge to let's break this down, step one copy templated chart and rename it to
challenge to this is going to be a base for the challenge that we created an if statement in the deployment.
You're going to do the same.
But in the service, what we want is an if statement block to check the service type, if it's of type
no that we pass in the no port and we're also in need of a port in there as well.
But on the other hand, if it's a load balancer, we also set the port.
However, we don't need the node port.
And lastly, we want a default statement says if it's a cluster IP USB port, eight thousand one hundred
and eighty, it was a couple of ways you could go around doing this.
You could set up different values files, but it's going to be a bit lengthy if you want to do it that
way.
Or the other thing we could do, again, probably not best practice, but in this example it's fine.
But the challenge is to manually hard code it so we can have to write the port statement anyway.
Why don't we remove it from value yaml and manually hard code?
It is important, but it's not so much a hard coding part, but rather the if statement block.
Lastly, for a bit of a curveball inside deployment, we have a container called Engine X container.
I want you to take an entire section, turn it into a template and call it back.
This is to test your templating knowledge and to put it to the test.
As I always say, with all my challenges, these aren't like school.
You are allowed to go online.
You are allowed to look up things and you're more than welcome to go back and watch lessons again.
The important thing is, is to have a go at doing it, see how you get on and learn from the challenges
you find.
Join me in the next lesson where I'm going to show you how to complete the challenge.
Good luck.
Have fun.
And I'll see you in the next lesson shortly.