Set Configuration Context
kubectl config use-context rk8s
You are tasked to find a pod consumes more memory and write to file /pods/highmemory.txt
Task
Please complete the following:
-
Find the highest memory consuming pod from the list of available pods in
memory
namespace and write only name of the pod to given file. -
Check if the file
/pods/highmemory.txt
is already created and create if needed.