当前位置:网站首页>Coredns modifying upstream
Coredns modifying upstream
2022-06-30 21:56:00 【weixin_ forty million four hundred and fifty-five thousand one 】
coredns Default upstream/forword yes 8.8.8.8, It's easy if you don't modify it crash, You can refer to :https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/.
coredns The default is as follows :
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: | .:53 { errors health { lameduck 5s } ready kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 } prometheus :9153 forward . /etc/resolv.conf cache 30 loop reload loadbalance }
So if you create it yourself coredns image, You can modify /etc/resolv.conf The contents of the document , Yes, it can be modified configMap, then delete Already exist pod To achieve the purpose of revision .
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: | .:53 { errors health { lameduck 5s } ready kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 } prometheus :9153 forward . 114.114.114.114 cache 30 loop reload loadbalance }
边栏推荐
- 《Dynamic Routing Between Capsules》论文学习总结
- Dm8: generate DM AWR Report
- 阿婆做的臭豆腐
- NCAT detailed introduction (Reprint)
- 攻防演练中的防泄露全家福
- jenkins下载插件下载不了,解决办法
- 根据肠道微生物组重新思考健康饮食
- [backtracking] full arrangement leetcode46
- Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
- 将el-table原样导出为excel表格
猜你喜欢

根据肠道微生物组重新思考健康饮食

模板方法模式介绍与示例

Is machine learning suitable for girls?

Which direction should college students choose to find jobs after graduation?

吴恩达的机器学习适合入门吗?

JD and Tencent renewed the three-year strategic cooperation agreement; The starting salary rose to 260000 yuan, and Samsung sk of South Korea scrambled for a raise to retain semiconductor talents; Fir

Modify the name of the launched applet

A comprehensive understanding of gout: symptoms, risk factors, pathogenesis and management

Five years after graduation, I wondered if I would still be so anxious if I hadn't taken the test

Troubleshooting the problem of pytorch geometric torch scatter and torch spark installation errors
随机推荐
Encryption and decryption and the application of OpenSSL
Reading notes of Clickhouse principle analysis and Application Practice (3)
Five years after graduation, I wondered if I would still be so anxious if I hadn't taken the test
Windbg调试工具介绍
[untitled] first time to participate in CSDN activities
Some problems when SSH default port is not 22
兴奋神经递质——谷氨酸与大脑健康
Introduction and example of template method mode
Ten security measures against unauthorized access attacks
《ClickHouse原理解析与应用实践》读书笔记(2)
Notes [introduction to JUC package and future]
vim 常用快捷键
Error reporting: internal error XFS_ WANT_ CORRUPTED_ GOTO at line 1635 of file fs/xfs/libxfs/xfs_ alloc. c.
Do machine learning jobs require graduate students?
机器学习中如何使用数据集?
【回溯】全排列 leetcode46
jenkins下载插件下载不了,解决办法
从PG15 XID64再次跳票说起
《Dynamic Routing Between Capsules》论文学习总结
1-11 create online file service