Hi Alessandro, Would resource scaling work for you?
We are using this approach in our development environments, so anytime developers don’t use their setup they scale it to 0 then bring it back by scale back to 1. Here is more info https://kubernetes.io/docs/reference/kubectl/cheatsheet/#scaling-resources To bring it down kubectl scale --replicas=0 deployments --all -n <namespace> kubectl scale --replicas=0 statefulsets --all -n <namespace> To bring it back up kubectl scale --replicas=1 deployments --all -n <namespace> kubectl scale --replicas=1 statefulsets --all -n <namespace> From: <[email protected]> on behalf of D'Alessandro Alessandro Gerardo <[email protected]> Reply-To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]> Date: Friday, January 25, 2019 at 8:17 AM To: "[email protected]" <[email protected]> Subject: [onap-discuss] procedure to shut down and reboot ONAP/Kubernetes Hi, we need to move our testbed (ONAP/Kubernetes/Openstack) and hence we need to shut it down and boot it …. but we weren't able to find any procedure to do that in a safe way. Few months ago a power outage required us to re-install both Kubernetes and ONAP. Has someone of you already faced with the same problem and can provide some guidelines? thanks in advance. best regards, Alessandro Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie. This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks. Rispetta l'ambiente. Non stampare questa mail se non è necessario. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15171): https://lists.onap.org/g/onap-discuss/message/15171 Mute This Topic: https://lists.onap.org/mt/29540879/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
