News for hackers. Stuff that matters.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by bavell on Wednesday June 01, 2022 @10:50PM (#31590727)
'kubectl delete -f dir/' will delete all resources in the directory.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway894345 on Thursday June 02, 2022 @12:19AM (#31591299)
Right, but the only resource you want to delete is no longer in that directory, so you’ve now deleted every resource you except the one you actually wanted to delete. :)
Re:Ask HN: If Kubernetes is the solution, why are there so m... by bavell on Saturday June 04, 2022 @10:20AM (#31620615)
Ah, I slightly misunderstood. Still, you should always have your manifests under version control so this shouldn't ever be a problem :)