This is the solution video for the labels and selectors.
So for the first question, we had deployed a number of parts.
They are labeled with tier environment and B, you, which is a business unit.
How many parts exists and the dev environment you select us to filter the output.
So we'll have to find the ports and the environment.
So to find this, let's go to the terminal and we're going to type still get pods.
And you can see all the pods here and let's run shoe labels to list them with the labels and to filter
it out.
We are going to make use of the dash l flag.
So we are going to look up.
Environment is equal to def.
So let's type cubicle get pods, dash l, EMV is equal to def and all, let's use no headers to remove
the headers and use W.S. Dash Shell, which is what count.
And you can see that there are in total seven ports with the label environment is equal to def.
So the correct answer is seven.
How many pods are in the finance business unit, so same thing as before.
Let's change the label.
To be used to finance.
And the answer is six.
All right, to the next question, how many objects are in the proper environment, including parts,
replica suits and any other object?
So for this, we will use the cue to get all command.
And look up the objects in the production environment.
So let's first change the label to EMV is equal to prod.
So that's the parts, but we need all the objects, so we're going to get all.
And let's do a word count.
So there are in total seven objects.
Identify the part which is broad part of Annan's view and has front end here.
Here is the front end.
So it is part of production, environment, business unit as finance and here as you can do front end.
So we are going to use will get parts and let's start all the pods with the label and we are going to
use common separation between all the labels.
So we have already entered environment as equal to prod Buzaglo finance and here should be front end.
So we see that there is a one single pot by the name of Abduh one that that SDF.
So that's our pot.
Which belongs to all all these three labels and onto the last question, a replica set definition is
given called replica set dash definition dash one dot yaml tried to create a replica set.
There is an issue with this file, so allow to fix it.
So let's first try to create this replica set.
And here we see that there is an error, The Selecter does not match the label.
So let's edit the file and fix the mismatch, so here, if you notice, the selector earthier is equal
to front end, but the label osteological the engine.
So let's change the label to TerraCycle to front end so it matches the selector and now we should be
able to create this replica said.
All right, so that was the last question.
Thank you for joining me.
I'll see you in the next one.