Skip to content

Instantly share code, notes, and snippets.

@vidhill
Created March 23, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vidhill/f47845df8d491420d9285a25ca6889c8 to your computer and use it in GitHub Desktop.
Save vidhill/f47845df8d491420d9285a25ca6889c8 to your computer and use it in GitHub Desktop.
W0323 16:17:08.207564 5282 root.go:157] Error reading config file at /home/dhill/.minikube/config/config.json: open /home/dhill/.minikube/config/config.json: no such file or directory
I0323 16:17:08.208195 5282 notify.go:112] Checking for updates...
Starting local Kubernetes cluster...
Starting VM...
Downloading Minikube ISO
89.24 MB / 89.24 MB [===============================================] 100.00% 0
SSH-ing files into VM...
Downloading localkube binary
77.35 MB / 77.35 MB [===============================================] 100.00% 0
Setting up certs...
I0323 16:20:34.180119 5282 cluster.go:241] Setting up certificates for IP: %s 192.168.99.100
Starting cluster components...
I0323 16:20:34.947800 5282 cluster.go:174]
if which systemctl 2>&1 1>/dev/null; then
printf %s "[Unit]
Description=Localkube
Documentation=https://github.com/kubernetes/minikube/tree/master/pkg/localkube
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
Restart=always
RestartSec=3
ExecStart=/usr/local/bin/localkube --apiserver-name=minikubeCA --generate-certs=false --logtostderr=true --enable-dns=false --node-ip=192.168.99.100
ExecReload=/bin/kill -s HUP $MAINPID
[Install]
WantedBy=multi-user.target
" | sudo tee /usr/lib/systemd/system/localkube.service
sudo systemctl daemon-reload
sudo systemctl enable localkube.service
sudo systemctl restart localkube.service || true
else
sudo killall localkube || true
# Run with nohup so it stays up. Redirect logs to useful places.
sudo sh -c 'PATH=/usr/local/sbin:$PATH nohup /usr/local/bin/localkube --apiserver-name=minikubeCA --generate-certs=false --logtostderr=true --enable-dns=false --node-ip=192.168.99.100 > /var/lib/localkube/localkube.out 2> /var/lib/localkube/localkube.err < /dev/null & echo $! > /var/run/localkube.pid &'
fi
I0323 16:22:35.399262 5282 cluster.go:176] [Unit]
Description=Localkube
Documentation=https://github.com/kubernetes/minikube/tree/master/pkg/localkube
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
Restart=always
RestartSec=3
ExecStart=/usr/local/bin/localkube --apiserver-name=minikubeCA --generate-certs=false --logtostderr=true --enable-dns=false --node-ip=192.168.99.100
ExecReload=/bin/kill -s HUP
[Install]
WantedBy=multi-user.target
Created symlink /etc/systemd/system/multi-user.target.wants/localkube.service → /lib/systemd/system/localkube.service.
Job for localkube.service failed because the control process exited with error code.
See "systemctl status localkube.service" and "journalctl -xe" for details.
Connecting to cluster...
Setting up kubeconfig...
I0323 16:22:35.616146 5282 config.go:68] Using kubeconfig: /home/dhill/.kube/config
Kubectl is now configured to use the cluster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment