kubernetes local dns issue
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.5k
- Forks
- 1.8k
- Avg merge
- 42m
- Merged PRs (30d)
- 2
Description
Latest version/or 1.17.... can't resolve kubernetes service name from core-dns.
I am getting this error.
server can't find [servicename].svc.cluster.local: NXDOMAIN
If you sh to created pod run nslookup:
$ kubectl run --image nginx:1.17-alpine --restart=Never --rm -it nginx -- sh
/# nslookup kubernetes.default
error is:
** server can't find kubernetes.default: NXDOMAIN
Same works with 1.16-alpine.
Is this something to do with https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the kubectl run and nslookup commands from the report with pinned 1.16-alpine and 1.17-alpine images. Compare the results with Kubernetes' DNS debugging guidance; done means identifying a reproducible image-related cause and fix, or confirming that the problem belongs outside docker-nginx.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100