<p>In order to deploy my k8s cluster I <code>kubectl apply -f folder-of-yamls/</code></p>
<p>And it seems that the order of execution is important.
One approach I've seen is to prefix <code>001-namespace.yaml</code> <code>002-secrets.yaml</code> etc. to create an ordering.</p>
<p>To tear down, if I <code>kubectl delete -f folder-of-yamls/</code>, can I simply reverse the order or must I manually create a sequence?</p>

<p>Order of deletion shouldn't matter to much, as mentioned by David Maze in comments, <code>kubectl delete -f folder/</code> will clean up everything correctly, however there might be some issues when you delete objects that are dependent from other. For example <code>PVC</code> should be deleted before <code>PV</code> (PV will take forever to be deleted) but kubernetes should take care of that if everything is present in directory you are deleting yamls from.</p>
