Hi and welcome back.
How did you do with a challenge?
Were you able to complete it?
Let's jump into how to complete it now.
So first thing's first.
I'm going to go to my incinerates tomorrow.
So I'm going to click on V and go to inspirited terminal inside the home folder.
So what I want to do now is type in help create a chart name, which is going to be challenge answer.
Very good.
Done.
Now, if we look at the Explorer, I can see I've got a phone here called Challenge.
So step two, we need to remove certain files and folders, so the first one to go is going to be test.
We're not going to use the help us file.
I'm not going to use the ingress notes or the service account so we can go in what I said about the
labels that we all could have to manually set it.
I'm going to leave a name for now first, but I'm interested in is this behavior labels so is going
to be called App Kolon Apache.
I would go ahead and copy that if we go match labels thing good.
And it's in simply her.
Now, time to do a bit of housekeeping, so let's get rid of all this from containers up to spec that
need the security context.
They could use deployment name for the container name in this case, I'm just going to call it Apache
to manually set it.
Don't need the image policy that can go.
And from Lowden's pope, overweights at the bottom, that can go.
It's quite a bit to strip out the deployment, but we're pretty much bare replicas.
We didn't specify anything so we can leave it as is or we could set that to one.
And the name will come back to you shortly over to the service label.
Same again at Apache and Selecter.
Also set back to the label where so we're pretty much there now.
We've done step one and step two.
Now we've got step for what we're going to start templating.
And to begin with, we're going to work with the deployment.
So go over to values that YAML.
I manually separate account.
So I'll but up we don't need these image secrets.
Removalist don't need the service account that can go.
And we don't need port security context or the security context, they can all go and now we've got
to service everything below that can go.
So stop with the deployment, as I mentioned before, in a less than personal preference is let's give
it a name.
So it would be deployment.
And then under everything inside that is specifically for deployment, you could leave it as is would
the image.
And that would be perfectly fine if you put a bit of his challenges is not so much copying word for
word or exactly how I did it, but more also having a good doing it and making sure your solution works
and we achieve the same end goal.
So we've got deployment at a curtain to the end.
And now it's on to indents.
So we said we need a name and we're going to call this challenge.
The image now, of course, that repository here, I'm going to call it image, and we said it's going
to be TPD.
And we also need to set a version so version out.
So it's going to be two point four.
There we go.
That's a deployment done now needs to be templating.
So now let's start from scratch.
Values, taught deployment, taught name.
Now, if you left it and made a minor change, that's absolutely fine and we can see here in Image,
it's pretty much set for us.
We all have to make a couple of little tweaks.
So let's start with that.
So you got values image because I put mine inside deployments.
Lovatt image deployment.
And looking back at values, the level of quality, image, image, again, we use up anyway, so the
image, that image.
And now we need certain versions, so it's going to be dot values, dot deployment, dot image, dot
version, I don't quite like having an image twice.
I'm going to change this out to app.
Personal preference, I just don't think it looks very nice here, having image the image so it at Severiano,
that is a deployment done.
Let's work with the service, a step for step forward.
We've got the type, so need to sort that out and we've got the port now.
We said that's also going to be sexy.
Port 80 Target Port is also going to be Port 80.
What we need to do is set the node port.
So it will do is a lot of it's a node port.
So we'll set the node for here and we'll template that shortly.
So let's have a service type.
So we need to change that to no port.
We could leave this port as this instead of giving it the name it no port.
So it's perfectly fine.
We don't need to rename this value here.
So we could do is simply just leave it as is and put in the No port.
No we want so three one, two, three, four or thirty one thousand two hundred and thirty four lossing
we need to do is also had the name which we said is going to be Challenge SBC.
Now, let's go ahead and play that up, so a name.
Is that values, dots, service, dot name, the type is fine.
And lastly, we've got set the nopal, so do not values, not service, not pork as on a demo.
When I did it, I report to port target port and no port.
But this example, it's fine because we're only setting the node port here.
So steps one, two, three, four and five done.
Up next is to go ahead and deploy it.
So let's give it a go.
Go to our integrated terminal.
I'm inside the home folder.
So now we're going to feed into the challenge folder.
So minimize this and now let's go ahead and run it home, install the name, symbolical his challenge
and full stop for a context inside this folder here and go ahead and hit enter.
Now, Sportive is here to challenge.
And we will see the error, which was Part Potami issue.
Unfortunate, it was a bit of a that was a bit of a mistake, my end, so the name here, deployment
image name, whereas here in deployment we can see its values deployment name.
So we need to do is take that value out.
Again, this is what I think is really useful going for this British show, mistakes that were made,
because let's be honest, sometimes we all make them, but also good practical hands on experience for
getting used to editing and making the changes and also troubleshooting.
So we do see that message move in lightly is something is missing.
So in this case, it was a deployment.
No values, not deployment.
No.
And now if we look at the values, its values, deployment, Dutney, that work.
So now if we go back to a terminal.
Now, come on again, help install challenge, full stop.
Excellent.
That's not deployed.
Now going to open up my other terminal.
It's easy to see and now run help list.
Awesome.
So I can see Challenge and now could open up my browser and check.
It all works.
So I have my browser.
Next one I need to do is get VIP.
So to do that, we run mini CUV IP.
Excellent.
Copy that and then go over to our browser.
Payslip and lost the airport number for a Newport, she's thirty one thousand two hundred and thirty
four, go ahead and enter and exit.
That's the thing we want to say.
It works.
They used to move.
Apache used to get this nice picture in the British version.
We get this message here.
It works.
And that's the important bit.
Our solution, what we set up and a home, it works.
That's awesome.
Last step is to tear it all down.
So to do the hell uninstall challenge.
I we go about stuntwomen and to double check, if I go over to my browser and they enter.
There we go.
Can't be reached, says all been torn down.
How did you find a challenge?
It's a lot to take on board, especially if you burn you to hell, but you've learned so much go for
this challenge already and you're in a fantastic position.
So pat yourself on the back.
You've done a fantastic job.
In the next section.
We're going to keep expanding our knowledge and help for senior.