Skip to content

Instantly share code, notes, and snippets.

@ybelleguic
Last active May 1, 2021 08:15
Show Gist options
  • Save ybelleguic/5fa2a50443e6bd05cde53b3fd33a3d5c to your computer and use it in GitHub Desktop.
Save ybelleguic/5fa2a50443e6bd05cde53b3fd33a3d5c to your computer and use it in GitHub Desktop.
minikube systemd unit
[Unit]
Description=Minikube Service
After=libvirtd.service
After=libvirtd.socket
After=network-online.target
After=libvirt-guests.service
[Service]
Type=oneshot
User=Yohan.Belleguic
Group=Yohan.Belleguic
ExecStart=minikube start --driver=kvm2 --insecure-registry "192.168.39.0/24"
ExecStop=minikube stop
Environment="NO_PROXY=localhost,192.168.39.0/24" "HTTP_PROXY=192.168.39.1:8888" "HTTPS_PROXY=192.168.39.1:8888" "http_proxy=192.168.39.1:8888" "https_proxy=192.168.39.1:8888"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment