Debian docker image in Google Kubernetes Engine fails
Stay organized with collections
Save and categorize content based on your preferences.
Problem
Name resolution on your pods from Debian-based images may intermittently fail. For example, out of 100 name resolutions for your internal host names, there are 1-3 failures.
Error message says:
Temporary failure in name resolution.
Environment
- Docker image
- kube-dns configured to look up your internal host names via your own DNS servers:
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-dns
namespace: kube-system
data:
stubDomains: |
{"my.corp": ["10.17.128.10","10.17.128.11","10.17.128.12"]}
- Google Kubernetes Engine version 1.9.x
- TCP Dump shows that both A and AAAA requests are done in parallel but for your domain only the AAAA request receives a reply.
Solution
Use the inetutils-ping debian package instead of the standard iputils-ping.
Cause
inetutils-ping supports only IPv4.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-10 UTC."],[],[]]