<p>I am a complete newbie to kubernetes and have set up my own cluster on-premises comprising of one master and two workers, using kubeadm, on some virtual machines.
I'd like to deploy a sample web application to get some experience working with docker and containers.</p>
<p>Now, once I finish using this sample application and am ready to set up something of use, is there a clean up involved?
How do I &quot;uninstall&quot; the previous software and remove the old containers/images and &quot;install&quot; a new application on the cluster?</p>
<p>I hope this is clear. I'm not entirely sure if what I'm asking is right so please do correct me. Thanks in advance!</p>
<p>I've only set up the cluster so far and couldn't find anything online about &quot;uninstalling&quot; an app on a cluster. All I found was resources pointing to <code>kubeadm reset</code>.</p>

gis_iguess
<blockquote>
<p>How do I &quot;uninstall&quot; the previous software and remove the old containers/images and &quot;install&quot; a new application on the cluster?</p>
</blockquote>
<p>How did you deploy the application in the first place? Typically, you do the reverse of whatever you did to deploy your manifests...</p>
<ul>
<li><p>If you used <code>kubectl apply -f &lt;some_file&gt;</code> then to delete things you would run <code>kubectl delete -f &lt;some_file&gt;</code></p>
</li>
<li><p>If you're using <a href="https://kustomize.io" rel="nofollow noreferrer">kustomize</a> (humble opinion: you should be), then instead of <code>kubectl apply -k .</code> you would <code>kubectl delete -k .</code>.</p>
</li>
<li><p>If you installed something using <code>helm install</code>, you would remove it with <code>helm uninstall</code></p>
</li>
</ul>
<p>Etc.</p>
<p>And of course, you could also delete the namespace into which your application was deployed, which will remove all resources in the namespace.</p>
