Comments (18)
@tamilmani1989 @cpressland would #345 fix this?
from azure-container-networking.
Worse, tried on Ubuntu 16.10 and CNI/IPAM knocks the VM completely off the network.
from azure-container-networking.
@seanknox is this a self managed k8s cluster, or setup via acs-engine? If you are using acs-engine, can you please share cluster config?
Also, is it kube-dns that breaks, or default azure dns, or are you specifying dns in your Vnet config?
from azure-container-networking.
@seanknox if you are working on self manages cluster, please ensure you have ebtables installed on nodes before using cni. Otherwise, layer 2 operations fails and vm can loose connectivity.
from azure-container-networking.
@sharmasushant it's a self-managed cluster (built using terraform: http://github.com/seanknox/acstack). layer 3 and layer 4 continues to work fine: I can ping and connect to sockets on the internet. the issue with Ubuntu 17.10 is DNS resolution fails once CNI kicks in on the node.
from azure-container-networking.
Also, can confirm that conntrack and ebtables are already installed.
from azure-container-networking.
@sharadagarwal do you need any additional information to investigate?
Edit, oops, meant @sharmasushant.
from azure-container-networking.
@seanknox did you mean to ask someone else?
from azure-container-networking.
@saiyan86 can you take a look?
@seanknox can you please try v1.0.2 to unblock while we look at 1.0.3
v1.0.2 has been working well with ace-engine for some time now.
from azure-container-networking.
@sharmasushant just tried v1.0.2 and same problem. Note that acs-engine uses Ubuntu 16.04-LTS, which is older.
from azure-container-networking.
@sharmasushant I just saw this. Will take a look.
from azure-container-networking.
I don't think this is the case, as the bug refers to adding the local caching nameserver to a list of existing nameservers in resolv.conf.
In my case, I'm only using the default nameserver that comes with Ubuntu 17.10 (nameserver 127.0.0.53
).
from azure-container-networking.
@seanknox - Can you change nameserver to 168.63.129.16 in resolv.conf and check if its working? Also please share /var/log/azure-vnet.log and /var/log/azure-vnet-ipam.log
from azure-container-networking.
@seanknox can you please share an update if your issue is still there?
from azure-container-networking.
Closing stale issue
from azure-container-networking.
Could we reopen this? In my investigation of implementing Azure-CNI into our own cluster #344 we've run into the same issue. I worked-around it with this:
apt -y install resolvconf
cat <<EOF | tee /etc/resolvconf/resolv.conf.d/head
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolv
conf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual namese
rvers.
nameserver 168.63.129.16
EOF
systemctl restart resolvconf.service
While the above works, it still feels like a hack.
from azure-container-networking.
Turned out it was actually much easier to solve than the above. The Kubelet has an option specifically for this and we've set it as follows in the Kubelet config YAML: resolvConf: "/run/systemd/resolve/resolv.conf"
from azure-container-networking.
@cpressland #345 should fix this.
from azure-container-networking.
Related Issues (20)
- Update Azure CNI v1 nodeAffinity labels
- [BUG] Running many pods on a Windows node at the same will lead to failures of CNI HOT 6
- Pod stuck in `ContainerCreating` state with `Failed to find the master interface` warning. HOT 12
- CNI not setting the Flags in endpoint policies to use IPV6 in case of DualStack cluster HOT 2
- overlay IPAM not reporting version HOT 4
- Azure CNI breaks with Linux kernel 6.2 HOT 2
- Test
- question iptables vs firewalld / non(AKS) Kubernetes HOT 3
- NPM constantly output telemetry errors HOT 2
- Critical CVEs HOT 2
- Add support for port ranges in NetworkPolicy with "endPort" field HOT 3
- On k8s 1.28 (public preview), Windows NPM crash HOT 1
- CNI Installer migration
- Change flow of using Azure Virtual Network Subnet in the Azure Kubernetes Service HOT 4
- Invalid CIDR address when creating Docker network using CNM plugin HOT 1
- Authenticate with Managed Identity from a Docker container connected to an Azure VNet using CNM plugin
- Azure CNI dynamic ip allocation batch size does not starts with 16 HOT 1
- Remove assests from release which are not supported
- Remove CNMS Code HOT 1
- Windows LoopbackDSR policy missing for IPv6 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-container-networking.