当前位置:网站首页>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 }
边栏推荐
- "Trust machine" empowers development
- 艾芬医生事件解析
- Do machine learning jobs require graduate students?
- 1-15 nodemon
- Excitatory neurotransmitter glutamate and brain health
- 顺祝老吴的聚会
- Document Layout Analysis: A Comprehensive Survey 2019论文学习总结
- Qsort function and Simulation Implementation of qsort function
- 5g demand in smart medicine
- 1-17 express Middleware
猜你喜欢
PyTorch量化实践(2)
A comprehensive understanding of gout: symptoms, risk factors, pathogenesis and management
jenkins下载插件下载不了,解决办法
【MySQL入门】第一话 · 初入“数据库”大陆
模板方法模式介绍与示例
谈谈数字化转型的几个关键问题
兴奋神经递质——谷氨酸与大脑健康
Look at the top 10 capabilities of alicloud cipu
Clickhouse Native Monitoring item, System table Description
Dm8: generate DM AWR Report
随机推荐
Sqlserver gets the data of numbers, Chinese and characters in the string
Develop your own package
1-1 basic concepts of database
SQL server extracts pure numbers from strings
Jupyter notebook/lab switch CONDA environment
Five years after graduation, I wondered if I would still be so anxious if I hadn't taken the test
1-14 express managed static resources
Reading notes of Clickhouse principle analysis and Application Practice (3)
机器学习工作要求研究生吗?
1-3 使用SQL管理数据库
1-18 创建最基本的express服务器&创建路由的API模块
Notes [introduction to JUC package and future]
Which direction should college students choose to find jobs after graduation?
1-2 install and configure MySQL related software
Nacos部署及使用
Open the jupyter notebook/lab and FAQ & settings on the remote server with the local browser
开发属于自己的包
jupyterbook 清空控制台输出
ML&DL:机器学习和深度学习中超参数优化的简介、评估指标、过拟合现象、常用的调参优化方法之详细攻略
Ten security measures against unauthorized access attacks