Created
October 31, 2021 15:46
-
-
Save joepreludian/956cfce9507dc6ddd2a6dd81458709bd to your computer and use it in GitHub Desktop.
Create minikube starting automatically from systemd enabled systems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Kickoff Minikube Cluster | |
After=docker.service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/minikube start | |
RemainAfterExit=true | |
ExecStop=/usr/local/bin/minikube stop | |
StandardOutput=journal | |
User=jon | |
Group=jon | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to get this done:
/etc/systemd/system/
;# systemctl reload-daemon
# systemctl enable minikube
Running at startup
Once you enabled the service, you will be able to run this on at the begin of your linux box. (I'm using a docker container to run minikube, so that's why it's important to add the
After
statement);Have fun! =)