Day 3 of the Daily Challenges

Hello!

A late night addition to my Grow notebook.

Today I worked on Day 3 of the Daily Challenges. I learned about QoS (Quality of Service) classes, and it was very rewarding.

Besides using the sandbox, I try these exercises in my own Kind cluster. Here, I found a few differences.

In my cluster, I didn’t see the OOMKilled status when I ran kubectl get pods memory-hog -w. In my cluster, I saw only Error, and CrashLoopBackOff. The reason of Termination, from the kubectl describe, is also different. In the sandbox it says OOMKilled. Here it says simply Error. See my reflections in the link.

Second, the Metrics Server isn’t available by default. It was like this both in the sandbox and in my local cluster. It means that this command won’t work out-of-the-box: kubectl top pod memory-hog

I installed the Metrics Server, following the instructions found here:

GitHub - kubernetes-sigs/metrics-server: Scalable and efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

Simply running kubectl apply -f didn’t help, though. The Metrics Server still wasn’t available. So I had to patch the deployment with a few extra flags. It’s mentioned in the link above, but it doesn’t show exactly how to do it, so I asked the AI to give me a hand here 😃

Here’s a question: could we maybe launch a single command that does everything? I mean, adding these labels to the kubectl apply command?

@Chad Crowell, maybe this is something to be added to the lab.

Check my reflections here: https://rmiravalles.github.io/grow/daily/day-03/

Cheers!