{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubeadm/issues/982","repository_url":"https://api.github.com/repos/kubernetes/kubeadm","labels_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/982/comments","events_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/982/events","html_url":"https://github.com/kubernetes/kubeadm/issues/982","id":339754539,"node_id":"MDU6SXNzdWUzMzk3NTQ1Mzk=","number":982,"title":"kubeadm commands fail without public ip","user":{"login":"EqbalS","id":5677547,"node_id":"MDQ6VXNlcjU2Nzc1NDc=","avatar_url":"https://avatars3.githubusercontent.com/u/5677547?v=4","gravatar_id":"","url":"https://api.github.com/users/EqbalS","html_url":"https://github.com/EqbalS","followers_url":"https://api.github.com/users/EqbalS/followers","following_url":"https://api.github.com/users/EqbalS/following{/other_user}","gists_url":"https://api.github.com/users/EqbalS/gists{/gist_id}","starred_url":"https://api.github.com/users/EqbalS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EqbalS/subscriptions","organizations_url":"https://api.github.com/users/EqbalS/orgs","repos_url":"https://api.github.com/users/EqbalS/repos","events_url":"https://api.github.com/users/EqbalS/events{/privacy}","received_events_url":"https://api.github.com/users/EqbalS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T09:05:42Z","updated_at":"2018-07-10T10:59:18Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\n## Is this a BUG REPORT or FEATURE REQUEST?\r\nBUG REPORT \r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n\r\n## Versions\r\n\r\n**kubeadm version** (use `kubeadm version`):\r\n`&version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.0\", GitCommit:\"91e7b4fd31fcd3d5f436da26c980becec37ceefe\", GitTreeState:\"clean\", BuildDate:\"2018-06-27T20:14:41Z\", GoVersion:\"go1.10.2\", Compiler:\"gc\", Platform:\"linux/amd64\"}`\r\n\r\n**Environment**:\r\n- **Kubernetes version** (use `kubectl version`): `version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.0\", GitCommit:\"91e7b4fd31fcd3d5f436da26c980becec37ceefe\", GitTreeState:\"clean\", BuildDate:\"2018-06-27T20:17:28Z\", GoVersion:\"go1.10.2\", Compiler:\"gc\", Platform:\"linux/amd64\"}`\r\n- **Cloud provider or hardware configuration**: vitrual machine on a dedicated server ran by Qemu\r\n- **OS** (e.g. from /etc/os-release): `NAME=\"Ubuntu\"\r\nVERSION=\"16.04.4 LTS (Xenial Xerus)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 16.04.4 LTS\"\r\nVERSION_ID=\"16.04\"\r\nHOME_URL=\"http://www.ubuntu.com/\"\r\nSUPPORT_URL=\"http://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\"\r\nVERSION_CODENAME=xenial\r\nUBUNTU_CODENAME=xenial`\r\n- **Kernel** (e.g. `uname -a`): `Linux kube1 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\n## What happened?\r\nAfter installing kubernetes components (kubeadm, kubelet, and kubectl) on the machine, before we do anythinng else we ran:\r\n```\r\n$ kubeadm config images pull\r\nunable to select an IP from default routes.\r\n```\r\n\r\nIt also happened when we ran other `kubeadm config` commands:\r\n```\r\n$ kubeadm config print-default\r\nunable to select an IP from default routes.\r\n```\r\n\r\nIt happend when we ran `kubeadm init` too:\r\n```\r\n$ kubeadm init\r\nunable to select an IP from default routes.\r\n```\r\n\r\nIt was fixed when we added  `--apiserver-advertise-address` flag:\r\n```\r\n$ kubeadm init --apiserver-advertise-address 10.0.0.2\r\nI0710 08:05:09.612114    8752 feature_gate.go:230] feature gates: &{map[]}\r\n[init] using Kubernetes version: v1.11.0\r\n...\r\n```\r\n\r\nThe following is the network configuration:\r\n```\r\ndocker0   Link encap:Ethernet  HWaddr 02:42:26:96:77:65  \r\n          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0\r\n          UP BROADCAST MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0 \r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth0      Link encap:Ethernet  HWaddr 52:54:00:44:f9:7c  \r\n          inet addr:10.0.0.2  Bcast:10.0.255.255  Mask:255.255.0.0\r\n          inet6 addr: fe80::5054:ff:fe44:f97c/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:6 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:496 (496.0 B)  TX bytes:578 (578.0 B)\r\n\r\neth1      Link encap:Ethernet  HWaddr 52:54:00:b6:2f:49  \r\n          inet addr:169.254.1.2  Bcast:169.254.1.255  Mask:255.255.255.0\r\n          inet6 addr: fe80::5054:ff:feb6:2f49/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:145638 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:115836 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:311059772 (311.0 MB)  TX bytes:8299673 (8.2 MB)\r\n\r\nlo        Link encap:Local Loopback  \r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          inet6 addr: ::1/128 Scope:Host\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:162 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:162 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1 \r\n          RX bytes:11940 (11.9 KB)  TX bytes:11940 (11.9 KB)\r\n```\r\n\r\n`eth0` is an interface to a private network between a set of virtual machines. and `eth1` is an interface to a private network between this vm and the host running the vm and it provides internet connectivity \r\nby ip forwarding from the host (host ip is 169.254.1.1 and it works as a gateway).\r\n\r\n## What you expected to happen?\r\nIt was expected for `kubeadm config` commands to work normally.\r\nbut `kubeadm init` needed the `--apiserver-advertise-address` flag and it was expected to fail without the flag.\r\n\r\n## How to reproduce it (as minimally and precisely as possible)?\r\nIt would probably happen on any machine without a public ip configured."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubeadm/issues/comments/403783694","html_url":"https://github.com/kubernetes/kubeadm/issues/982#issuecomment-403783694","issue_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/982","id":403783694,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzc4MzY5NA==","user":{"login":"rosti","id":1117321,"node_id":"MDQ6VXNlcjExMTczMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1117321?v=4","gravatar_id":"","url":"https://api.github.com/users/rosti","html_url":"https://github.com/rosti","followers_url":"https://api.github.com/users/rosti/followers","following_url":"https://api.github.com/users/rosti/following{/other_user}","gists_url":"https://api.github.com/users/rosti/gists{/gist_id}","starred_url":"https://api.github.com/users/rosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosti/subscriptions","organizations_url":"https://api.github.com/users/rosti/orgs","repos_url":"https://api.github.com/users/rosti/repos","events_url":"https://api.github.com/users/rosti/events{/privacy}","received_events_url":"https://api.github.com/users/rosti/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T10:59:18Z","updated_at":"2018-07-10T10:59:18Z","author_association":"NONE","body":"Hi @EqbalS and thanks for filing this issue!\r\n\r\nIt looks to me, that you don't have a properly configured default route on the machine.\r\nCan you, please, provide the output of the `route` command?\r\n\r\nThanks!"}}
{"actor":{"display_login":"rosti"}}