<p>I want to start and stop all services in a kubernetes cluster in way similar to how <code>docker-compose up</code> and <code>docker-compose down</code> can start and stop services in a docker-compose deployment. Is there a command to do this?</p>

Phillip Ngan
<blockquote>
<p>Is there a command to do this?</p>
</blockquote>
<p>No, there is no such command.</p>
<blockquote>
<p>An alternate solution to stop and start service.</p>
</blockquote>
<p><strong>1:</strong> First way is to write a shell script to delete the service and create once needed. # It will cost you resources(CPU's, RAM, Storage, etc ).</p>
<p><strong>2:</strong> If you are using a <code>deployment</code> resource you can <code>scale-out</code> your <code>replicas</code> to <code>0</code> and <code>scale-in</code> as needed. # Less resource utilization.</p>
<p><strong>3:</strong> Update the <code>selector:</code> filed in your service by which not to look for your pod. # requieed a code change</p>
