<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>From the directory where you have <code>metrics-server-deployment.yaml</code>, just run:</p>

<pre><code>kubectl apply -f metrics-server-deployment.yaml
</code></pre>

<p>If it complains, you can also manually delete it and run:</p>

<pre><code>kubectl create -f metrics-server-deployment.yaml
</code></pre>
