当前位置:网站首页>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
边栏推荐
- How to cancel the display of the return button at the uniapp uni app H5 end the autobackbutton does not take effect
- redolog和binlog
- 5g industrial router Gigabit high speed low delay
- [data update] Xunwei comprehensively upgraded NPU development data based on 3568 development board
- Mousse shares listed on Shenzhen Stock Exchange: gross profit margin continued to decline, and marketing failed in the first quarter of 2022
- Hongmeng development IV
- auto使用示例
- 【资料上新】迅为基于3568开发板的NPU开发资料全面升级
- Cold thinking on the hot track: multiplier effect is the fundamental requirement of East West calculation
- Hilbert Huang Transform
猜你喜欢
随机推荐
GraphMAE----論文快速閱讀
Part 1: building OpenGL environment
Ke Yi fallible point
ImportError: cannot import name ‘process_ pdf‘ from ‘pdfminer. Pdfinterp 'error completely resolved
Hongmeng OS development III
第 1 篇:搭建OpenGL环境
Live wire, neutral wire and ground wire. Do you know the function of these three wires?
[008] filter the table data row by row, jump out of the for cycle and skip this cycle VBA
JS implementation to check whether an array object contains values from another array object
[C language] system date & time
Solution to the error of running NPM run eject
js实现查看一个数组对象中是否包含另一个数组对象中的值
OC extension detects whether an app is installed on the mobile phone (source code)
Jenkins 太老了 试试它?云原生 CI/CD Tekton
Timer usage notes
Duilib display memory picture
In the post epidemic era, the home service robot industry has just set sail
Echart's experience (I): about y axis yaxis attribute
1-4metaploitable2 introduction
Swift extension networkutil (network monitoring) (source code)









