{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/2575","repository_url":"https://api.github.com/repos/kubernetes/minikube","labels_url":"https://api.github.com/repos/kubernetes/minikube/issues/2575/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/minikube/issues/2575/comments","events_url":"https://api.github.com/repos/kubernetes/minikube/issues/2575/events","html_url":"https://github.com/kubernetes/minikube/issues/2575","id":299956754,"node_id":"MDU6SXNzdWUyOTk5NTY3NTQ=","number":2575,"title":"More documentation around vm-driver=none for local use","user":{"login":"jakefeasel","id":1343640,"node_id":"MDQ6VXNlcjEzNDM2NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1343640?v=4","gravatar_id":"","url":"https://api.github.com/users/jakefeasel","html_url":"https://github.com/jakefeasel","followers_url":"https://api.github.com/users/jakefeasel/followers","following_url":"https://api.github.com/users/jakefeasel/following{/other_user}","gists_url":"https://api.github.com/users/jakefeasel/gists{/gist_id}","starred_url":"https://api.github.com/users/jakefeasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakefeasel/subscriptions","organizations_url":"https://api.github.com/users/jakefeasel/orgs","repos_url":"https://api.github.com/users/jakefeasel/repos","events_url":"https://api.github.com/users/jakefeasel/events{/privacy}","received_events_url":"https://api.github.com/users/jakefeasel/received_events","type":"User","site_admin":false},"labels":[{"id":657752961,"node_id":"MDU6TGFiZWw2NTc3NTI5NjE=","url":"https://api.github.com/repos/kubernetes/minikube/labels/driver/none","name":"driver/none","color":"f9d0c4","default":false},{"id":379209602,"node_id":"MDU6TGFiZWwzNzkyMDk2MDI=","url":"https://api.github.com/repos/kubernetes/minikube/labels/kind/documentation","name":"kind/documentation","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-24T17:22:40Z","updated_at":"2018-09-09T04:41:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Is this a BUG REPORT or FEATURE REQUEST?** (choose one): FEATURE REQUEST\r\n\r\nPlease provide the following details:\r\n\r\n**Environment**:\r\n\r\n**Minikube version** (use `minikube version`): v0.25.0\r\n- **OS** (e.g. from /etc/os-release): \"Ubuntu 16.04.3 LTS (Xenial Xerus)\"\r\n- **VM Driver** (e.g. `cat ~/.minikube/machines/minikube/config.json | grep DriverName`): none\r\n- **ISO version** (e.g. `cat ~/.minikube/machines/minikube/config.json | grep -i ISO` or `minikube ssh cat /etc/VERSION`): n/a\r\n- **Install tools**:\r\n- **Others**: Docker version 18.02.0-ce\r\n\r\n**What happened**: I spent a long time struggling to get things working properly with vm-driver=none\r\n\r\n**What you expected to happen**: Find documentation which provides coverage for this very valuable use-case.\r\n\r\n**Anything else do we need to know**:\r\n\r\nI have a linux laptop that I want to use k8s on. I do not want to run a VM, since that is an inefficient use of my laptop's memory (always either too much or too little memory allocated for the given docker containers I want to run) and slower due to the extra virtualization. Also it shouldn't be necessary - I have a Linux environment, why should I have to run another VM just to run Linux? That's why I bought this laptop.\r\n\r\nThe use of vm-driver=none is hardly documented at all. What little there is does not seem to consider the value for developer machines.\r\n\r\nYesterday I filed https://github.com/kubernetes/minikube/issues/2571, but this was actually not the full story. I had a red-herring with IP addresses which led me to believe that the docker0 interface was the root of the problem. It turns out, the real problem was whatever IP address I happened to have bound to my ethernet interface would be used in the construction of the cluster. If that IP address changed for any reason (as often happens on laptops) then the whole environment was inaccessible.\r\n\r\nThe workaround was not to specify a bridge IP for docker, as I had thought. Instead you need to start minikube like so:\r\n\r\n    minikube start--vm-driver=none --apiserver-ips 127.0.0.1 --apiserver-name localhost\r\n\r\nAnd then go and edit ~/.kube/config, replacing the server IP that was detected from the main network interface with \"localhost\". For example, mine now looks like this:\r\n\r\n```\r\n- cluster:\r\n    certificate-authority: /home/jfeasel/.minikube/ca.crt\r\n    server: https://localhost:8443\r\n  name: minikube\r\n```\r\n\r\nWith this configuration, I can access my local cluster all of the time, even if the main network interface is disabled.\r\n\r\nAlso, we should note that it is required to have \"socat\" installed on the Linux environment. See this issue for details: https://github.com/kubernetes/kubernetes/issues/19765  I saw this when I tried to use helm to connect to my local cluster; I got errors with port-forwarding. Since I'm using Ubuntu all I had to do was `sudo apt-get install socat` and then everything worked as expected."},"comment":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/comments/419690472","html_url":"https://github.com/kubernetes/minikube/issues/2575#issuecomment-419690472","issue_url":"https://api.github.com/repos/kubernetes/minikube/issues/2575","id":419690472,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTY5MDQ3Mg==","user":{"login":"bw2","id":6240170,"node_id":"MDQ6VXNlcjYyNDAxNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6240170?v=4","gravatar_id":"","url":"https://api.github.com/users/bw2","html_url":"https://github.com/bw2","followers_url":"https://api.github.com/users/bw2/followers","following_url":"https://api.github.com/users/bw2/following{/other_user}","gists_url":"https://api.github.com/users/bw2/gists{/gist_id}","starred_url":"https://api.github.com/users/bw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw2/subscriptions","organizations_url":"https://api.github.com/users/bw2/orgs","repos_url":"https://api.github.com/users/bw2/repos","events_url":"https://api.github.com/users/bw2/events{/privacy}","received_events_url":"https://api.github.com/users/bw2/received_events","type":"User","site_admin":false},"created_at":"2018-09-09T04:41:25Z","updated_at":"2018-09-09T04:41:25Z","author_association":"NONE","body":"Also having misc. issues with networking and (re)starting my vm-driver=none cluster. \r\nSo far only finding additional descriptions of people having these issues - for example\r\nhttps://brokenco.de/2018/09/04/minikube-vmdriver-none.html"}}
{"actor":{"display_login":"bw2"}}