News for hackers. Stuff that matters.
Re:Moving from Heroku to Google Kubernetes Engine by atombender on Friday April 05, 2019 @01:12PM (#19584739)
Deletion is definitely less common, but we do this all the time. It keeps cruft from accumulating when people forget to delete resources.

It's also nice to be able to do "helm del myapp" and know that everything is wiped. You can do this with "kubectl delete -R -f", but I believe you need the original files. You can of course do something like "kubectl delete -l app=myapp", but this requires consistent use of a common label in all your resources.

Re:Moving from Heroku to Google Kubernetes Engine by ecnahc515 on Friday April 05, 2019 @10:09PM (#19588723)
You can also use kubectl patch locally to apply a label to a set of manifests locally before piping into kubectl apply, eg:

  kubectl patch -f input.yaml --type merge -p '{"metadata": { "labels": {"key": "value"} } }' --dry-run -o json | kubectl apply -f - --prune -l key=value