Skip to content

Instantly share code, notes, and snippets.

@anonymuse
Created December 24, 2016 15:32
Show Gist options
  • Save anonymuse/5d319737aad600e33932c2683678ac1f to your computer and use it in GitHub Desktop.
Save anonymuse/5d319737aad600e33932c2683678ac1f to your computer and use it in GitHub Desktop.
WOPR:~ jesse$ minikube start --kubernetes-version="v1.5.1" --vm-driver="virtualbox" --show-libmachine-logs --alsologtostderr
W1224 10:30:26.467829 2747 root.go:139] Error reading config file at /Users/jesse/.minikube/config/config.json: open /Users/jesse/.minikube/config/config.json: no such file or directory
Starting local Kubernetes cluster...
Running pre-create checks...
Creating machine...
(minikube) Downloading /Users/jesse/.minikube/cache/boot2docker.iso from file:///Users/jesse/.minikube/cache/iso/minikube-0.7.iso...
(minikube) Creating VirtualBox VM...
(minikube) Creating SSH key...
(minikube) Starting the VM...
(minikube) Check network to re-create if needed...
(minikube) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
I1224 10:31:27.190411 2747 cluster.go:272] Setting up certificates for IP: %s 192.168.99.107
I1224 10:31:27.244509 2747 cluster.go:211]
if which systemctl 2>&1 1>/dev/null; then
printf %s "[Unit]
Description=Localkube
Documentation=https://github.com/kubernetes/minikube/tree/master/pkg/localkube
[Service]
Type=notify
Restart=always
RestartSec=3
ExecStart=/usr/local/bin/localkube --generate-certs=false --logtostderr=true --enable-dns=false --node-ip=192.168.99.107
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 restart localkube.service
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 --generate-certs=false --logtostderr=true --enable-dns=false --node-ip=192.168.99.107 > /var/lib/localkube/localkube.out 2> /var/lib/localkube/localkube.err < /dev/null & echo $! > /var/run/localkube.pid &'
fi
I1224 10:31:27.281235 2747 cluster.go:213] killall: localkube: no process killed
I1224 10:31:27.464765 2747 start.go:171] Using kubeconfig: /Users/jesse/.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