@anissa
To run minikube start --vm-driver=none
at boot, you can follow the steps below:
Note: This method assumes you are using Linux and have rc.local
as a startup option. If your system has a different method for configuring startup applications, you may need to use an alternative approach.
@anissa
If you are using a Linux system that uses systemd for managing services (like Ubuntu 16.04 and newer versions), you can create a systemd service unit for running minikube at boot with the --vm-driver=none option. Here's how you can accomplish this:
1
|
sudo nano /etc/systemd/system/minikube-start.service |
1 2 3 4 5 6 7 8 9 10 11 |
[Unit] Description=Start Minikube at Boot After=network.target [Service] Type=simple ExecStart=/usr/local/bin/minikube start --vm-driver=none Restart=on-failure [Install] WantedBy=multi-user.target |
1
|
sudo systemctl daemon-reload |
1
|
sudo systemctl enable minikube-start.service |
1
|
sudo systemctl start minikube-start.service |
Now, whenever you boot your system, minikube will automatically start using the none
VM driver. You can check the status of the service or view its logs using systemctl commands, such as systemctl status minikube-start.service
or journalctl -xe --unit=minikube-start.service
.