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

Aspsk/fix dns resolution on kind #24713

Merged
merged 2 commits into from
Apr 4, 2023
Merged

Commits on Apr 4, 2023

  1. contrib/kind: set custom DNS resolver for Kind nodes

    We are using our Kind provisioning script to create K8s clusters when testing
    in the CI. Recently, we discovered that on some kernels a default DNS resolver,
    which is dockerd, is troublesome for the BPF host routing, which we want to
    test in the CI (#23283).
    
    Fix this by patching the coredns configmap after creating a kind cluster to
    point to the 8.8.8.8 resolver. Alternative fixes (may still be applied later):
    
      * Pass a custom /etc/resolv.conf to kubelet via --resolv-conf in the Kind /
        kubeadm config.
    
      * Override /etc/resolv.conf of Kind nodes after creating a cluster (no race
        condition, as CoreDNS pods won't be started, as a CNI is not ready).
    
      * Patch Kind to allow users to specify custom DNS entries (i.e., docker run
        --dns="1.1.1.1,8.8.8.8").
    
    Fixes: #23283
    Fixes: #23330
    
    Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
    aspsk committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    bce8d9e View commit details
    Browse the repository at this point in the history
  2. gh/workflows: re-enable masqueranding for EGW

    The #23283 should have been fixed by the 3e8f697 ("contrib/kind: set custom
    DNS resolver for Kind nodes") commit, so we can re-enable masquerading by
    default and re-enable fast routing.
    
    Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
    aspsk committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    bc710b3 View commit details
    Browse the repository at this point in the history