This is the solution video for the classroom maintenance lab.
So for the first question, let us explore the environment first, how many news you see in the classroom?
So let's run cubicle, get notes.
And we can see that this is a whole new cluster.
How many applications do you see hosted on the cluster?
Check the number of deployments.
So let's try and Cube still get deployment.
Kubek, you get deployment's and we can see that there are two deployments by the name of blue and red,
the default namespace.
On which news are the applications holstered?
So let's run the command to get parts dash or wait to see the north and with the running.
So in this case, we can see that they are running on another one and no route to.
You need to take notes, rule one out for maintenance and note of all applications and it on schedule.
So for this will run CubeSat Al Green.
Node 01.
So they should drain all the ports which are running on the spot, but will have to use dash, dash,
ignore them, it's because there are some ports which are part of a demand set here.
So without that, it will not drain the node.
So you can see that the parts are getting evicted.
That means that the train is working well.
So soon it should not be hosting any parts other than the new ones which we asked to come on to ignore.
What news are the apps on now?
So let's on the same comment as before, which is cubicle get Pott's Dash all white, and now we can
see that they are on NEWSROOM two and NEWSROOM three.
So now let's wait for the command of the question to load up the maintenance task have been completed,
configured in order to reschedule again.
So let's run the command cube, dear, uncowed on, not zero one, so this will make sure that it is
scheduled again and we can verify that Peranich still get notes so we can see that no one is ready now.
So it is ready to schedule new ports, how many ports are scheduled, another one.
So let's run.
It will get ports Stachel wide again and see if there are any ports which are running on that one and
looks like there aren't so.
There are no new ports, no ports which are running on Luzira, one, why are there no ports are not
the one.
That's because we ran the train command, which affected the ports and rescheduled them on a different
note.
And as a result, until a new board has been scheduled, it will not run on one.
Why are there no pause plays on the emotional.
So let's take these teams, which are set on the snow so far that we could still describe a. monster
and grab 14.
So by default, Martineau's would have teed off no schedule, which will prevent any new ports to reschedule
on the monster itself.
It is now time to take down the road to for maintenance before you remove all workload's from loser,
to answer the following question, can you drain on the road to using the same command as NEWSROOM?
But let's try that.
So let's try and Cube Carlgren, not zero to.
And let's also make use of the dash dash, ignore different sets.
And in this case, it's failing because of an error.
It seems that there are parts on NEWSROOM two which are not managed by demons, head replication controller
or Percocet or a state would have to use dash dash forced to override and the name of the partners HRR
Dash app.
So the answer is no, you must Forcett.
Why do you need to force it?
We already know that there's a part which is not part of the replica said.
What is the name of the boat we already saw that as a child app.
What would happen to a app if not through to a screen, forcefully so, because it's not part of a replica
set or a communication controller or demon set on stateful set, it will be lost over.
Reynolds Rotu and mark it on schedule.
So let's use Dashty force now.
And here you can see that the part, a app has been evicted as well, and it will not be rescheduled
on any other note because it's not managed by.
And you have the replica sets, all replication controllers.
He has our critical applications, we do not want to schedule any more absolute zero three zero three
as unscheduled, but do not remotely currently running on it.
So we do not want to drain modulatory in this case.
What we want to do is called on it instead so that it does not accept any more points to reschedule
on a.
So if Iran could still get.
Part, I get notes, we'll see that newsroom tree is ready, but she really is disabled.
Nusreta was drained earlier, so it was a liquid state and that was the last question of this lab.
Thank you for joining me in this video.
I'll see you in the next one.