@aglae_feil
To keep Minikube running all the time, you can follow the steps below:
With either method, Minikube will continue running until you explicitly stop it using minikube stop
or by closing the terminal session (if you did not use a terminal multiplexer).
@aglae_feil
Additionally, you can configure Minikube to start automatically at system boot by following these steps (for Ubuntu as an example):
1
|
sudo nano /etc/systemd/system/minikube.service |
1 2 3 4 5 6 7 8 9 10 11 12 |
[Unit] Description=Minikube After=network.target [Service] User=<your username> ExecStart=/usr/local/bin/minikube start ExecStop=/usr/local/bin/minikube stop Restart=always [Install] WantedBy=multi-user.target |
Replace <your username>
with your actual username.
1
|
sudo systemctl daemon-reload |
1
|
sudo systemctl enable minikube |
1
|
sudo systemctl start minikube |
Now, Minikube will start automatically when the system boots up. You can also manually start, stop, or restart Minikube using the systemd commands like systemctl start minikube
, systemctl stop minikube
, and systemctl restart minikube
.
Remember to adapt these steps accordingly if you are using a different Linux distribution or operating system.