Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update network-y stuff for supporting ubuntu/bionic #87760

Commits on Feb 3, 2020

  1. update network-y stuff for supporting ubuntu/bionic as master

    On bionic, we don't have eth0 hard coded. example below, so we use `ip
    route` to figure out the default ethernet interface
    ```
    dims@kubernetes-master:~$ ip link
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
        link/ether 42:01:0a:80:00:23 brd ff:ff:ff:ff:ff:ff
    3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
        link/ether 02:42:b2:4e:dd:86 brd ff:ff:ff:ff:ff:ff
    ```
    
    Also, bionic uses systemd-resolver by default and adds entries in
    /etc/resolv.conf that CoreDNS does not link. So follow the
    recommendation in the documentation to specify resolv.conf explicitly
    dims committed Feb 3, 2020
    Copy the full SHA
    ee3f897 View commit details
    Browse the repository at this point in the history