atomicapp
atomicapp copied to clipboard
Label all artifacts for kubernetes and openshift
Kubernetes (and through that also openshift) has ability to label pods, services and RCs. If we label all of them with something like nulecule-$app_id
, we can use that for stop
feature and instead callinf kubectl delete -f
for every single artifact, we can just call kubectl delete rc,services,pods -l name=nulecule-$app_id
+1
I think that can be done automagically by atomicapp itself, no need to have the developer put that in upfront. So, after all has been extracted from the docker image, we can add these labels by processing the kube config files. Openshift provides templates for that, but the ISV (who generated the Atomicapp) may have not used them, so we should not depend on that.
Sounds good. So I understand, you're proposing using this is as a convention that atomicapp will rely on? Or will atomicapp add the label at runtime?
@aweiteka the last.
+1
I can take this.
Hi @navidshaikh although this is a late ping, are you still working on this / have a pr or branch for this?
If not, we can start working on it in order to introduce ways to list running atomicapp's, stop without having to pass a working directory, etc. etc.
Thanks!