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

[CPDEV-94948] CoreDNS resolving issues #547

Merged
merged 7 commits into from
Nov 17, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions documentation/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ This section provides troubleshooting information for Kubemarine and Kubernetes
- [No Pod-to-Pod Traffic for Some Nodes with More Than One Network Interface](#no-pod-to-pod-traffic-for-some-nodes-with-more-than-one-network-interface)
- [No Pod-to-Pod Traffic for Some Nodes with More Than One IPs with Different CIDR Notation](#no-pod-to-pod-traffic-for-some-nodes-with-more-than-one-ips-with-different-cidr-notation)
- [Ingress Cannot Be Created or Updated](#ingress-cannot-be-created-or-updated)
- [CoreDNS Cannot Resolve the Name](#coredns-cannot-resolve-the-name)
- [Case 1](#case-1)
- [Case 2](#case-2)
- [Troubleshooting Kubemarine](#troubleshooting-kubemarine)
- [Failures During Kubernetes Upgrade Procedure](#failures-during-kubernetes-upgrade-procedure)
- [Numerous Generation of Auditd System Messages](#numerous-generation-of-auditd-system)
Expand Down Expand Up @@ -927,6 +930,38 @@ spec:
- '--disable-full-test'
```

## CoreDNS Cannot Resolve the Name

### Case 1

**Symptoms**: A pod can't resolve the non-FQDN. Check inside the pod looks the following:

```
$ nslookup kubernetes.default
Server: 172.30.0.10
Address: 172.30.0.10:53


** server can't find kubernetes.default: NXDOMAIN
```

**Root cause**: Images that are based on Alpine Linux do not use `search` directives in `/etc/resolv.conf` by default.
alexarefev marked this conversation as resolved.
Show resolved Hide resolved
alexarefev marked this conversation as resolved.
Show resolved Hide resolved

**Solution**: Use FQDN instead of that consists of `service` and `namespace` only, e.g.: `kubernetes.default.svc.cluster.local`.

### Case 2

**Symptoms**: A pod that is attached to `hostNetwork` can't resolve a name periodically or constantly, even if it's FQDN. The error message is the following:

```
$ nslookup kubernetes.default.svc.cluster.local
;; connection timed out; no servers could be reached
```

**Root cause**: Traffic from node network to pod network is blocked for UDP port 53

**Solution**: Change cloud provider configuration to allow the traffic on IaaS layer. In OpenStack the Security Groups manage the allowed traffic.

# Troubleshooting Kubemarine

This section provides troubleshooting information for Kubemarine-specific or installation-specific issues.
Expand Down
Loading