当前位置:网站首页>Analysis of abnormal problems in domain name resolution in kubernetes
Analysis of abnormal problems in domain name resolution in kubernetes
2022-06-24 08:07:00 【I have nothing to do with you】
background :
build by oneself kubernetes1.16 colony , Most of the early service applications were php application .docker encapsulation nginx+php-fpm base image , Package the code into image jenkins Conduct ci/cd structure .
php An error is reported in the application that the domain name resolution of the boss fails .....what? Began to doubt kubernets Version of the problem , Also suspected network components . But I couldn't find the reason . Today, when Baidu was searching for information, I came across :https://www.it1352.com/589254.html, See what he solved above curl When retrieval takes too long curl It specifies CURL_IPRESOLVE_V4. Just think about it ... Yes. . My cluster is not disabled ipv6! To highlight the :
If it's on IPv6,curl By default, priority will be given to parsing IPv6, There is no... In the corresponding domain name IPv6 Under the circumstances , Will wait for IPv6 dns Parse failure timeout After that, we will go to find... According to the previous normal process IPv4
About the solution :
Just think about it, there are two solutions :
- work Node disabled ipv6
2 php The code specifies CURL_IPRESOLVE_V4
Start to solve :
1. About work Node disabled ipv6
reference :https://blog.csdn.net/wh211212/article/details/80996364
I am direct sysctl Set disable IPv6 The way of the , Do not want to restart cluster nodes !
stay /etc/sysctl.conf Add the following line net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 # Or perform sed -i '$ a\net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1' /etc/sysctl.conf To make the settings effective , Please perform sysctl -p
2. About php Code changes
reference :https://www.jb51.net/article/39788.htm, Just throw it to php Little buddy .... After all, I won't php.
Other references :
1. k8s – coredns Ban ipv6 analysis
2. Use in container nscd Cache optimization DNS analysis
边栏推荐
- 闲谈:3AC到底发生了什么?
- 4-操作列表(循环结构)
- Tuple remarks
- Simple refraction effect
- Solve the problem of notebook keyboard disabling failure
- 使用 kubeconfig 文件组织集群访问
- 3-列表简介
- Chapter 2 line graph of canvas
- Standing at the center of the storm: how to change the engine of Tencent
- Mousse shares listed on Shenzhen Stock Exchange: gross profit margin continued to decline, and marketing failed in the first quarter of 2022
猜你喜欢
Backup and restore SQL Server Databases locally
Graphmae - - lecture rapide des documents
某问答社区App x-zse-96签名分析
Part 2: drawing a window
Part 1: building OpenGL environment
Synchronous FIFO
GraphMAE----論文快速閱讀
Basics of reptile B1 - scrapy (learning notes of station B)
第 1 篇:搭建OpenGL环境
Écouter le réseau d'extension SWIFT (source)
随机推荐
Jenkins is too old try it? Cloud native ci/cd Tekton
Swift Extension NetworkUtil(网络监听)(源码)
Swift Extension NetworkUtil(網絡監聽)(源碼)
Exness: Powell insisted on his anti inflation commitment and pointed out that recession is possible
Tuple remarks
Hilbert Huang Transform
用Ngrok 配置属于自己的免费外网域名
【资料上新】迅为基于3568开发板的NPU开发资料全面升级
Leetcode 207: course schedule (topological sorting determines whether the loop is formed)
Auto usage example
Case examples of corpus data processing (cases related to sentence retrieval)
研究生英语期末考试复习
Chapter 3: drawing triangles
闲谈:3AC到底发生了什么?
Vulnhub靶机:BOREDHACKERBLOG: SOCIAL NETWORK
第 3 篇:绘制三角形
模型效果优化,试一下多种交叉验证的方法(系统实操)
How does dating software cut your leeks
第 2 篇:绘制一个窗口
Hongmeng development IV