<p>I have a Kubernetes cluster running on my local machine(via docker-for-desktop) and a metrics-server has been deployed to monitor CPU Usage. I want to make some changes in the <code>metrics-server-deployment.yaml</code> file which resides in <code>/metrics-server/deploy/1.8+</code> </p>

<p>I am done with the changes but I can't figure how to redeploy the metrics-server so that it will reflect the new changes. I am new to K8S and would love to get some help/tips or useful resources.</p>

<p>Thanks in advance</p>

Gauraang Khurana
<p>You can manually edit the file(s) and then use</p>

<pre><code>kubectl delete -f /metrics-server/deploy/1.8+
kubectl apply -f /metrics-server/deploy/1.8+
</code></pre>

<p>or (in my opinion the nicer version) you can just edit the deployment itself with</p>

<pre><code>kubectl edit deployment -n kube-system metrics-server
</code></pre>
