当前位置:网站首页>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 }
边栏推荐
- Neurotransmetteurs excitateurs - glutamate et santé cérébrale
- 興奮神經遞質——穀氨酸與大腦健康
- USBCAN分析仪的配套CAN和CANFD综合测试软件LKMaster软件解决工程师CAN总线测试难题
- Some problems when SSH default port is not 22
- 漫谈Clickhouse Join
- Excuse me, can I open an account for the company? Is it safe? All the answers you want are here
- Is machine learning suitable for girls?
- Rethink healthy diet based on intestinal microbiome
- jupyter notebook/lab 切换conda环境
- 将el-table原样导出为excel表格
猜你喜欢

5g demand in smart medicine

1-2 安装并配置MySQL相关的软件

Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)

Random talk about Clickhouse join

The Jenkins download Plug-in can't be downloaded. Solution

On several key issues of digital transformation

机器学习工作要求研究生吗?

介绍一款|用于多组学整合和网络可视化分析的在线平台

Arcmap|assign values to different categories of IDS with the field calculator

Jupyter notebook/lab switch CONDA environment
随机推荐
Develop technology - get time 10 minutes ago
Error filesystemexception: /data/nodes/0/indices/gttxk-hntgkhacm-8n60jw/1/index/ es_ temp_ File: structure needs cleaning
1-19 利用CORS解决接口跨域问题
Test medal 1234
ML&DL:機器學習和深度學習中超參數優化的簡介、評估指標、過擬合現象、常用的調參優化方法之詳細攻略
开发属于自己的包
Dm8: generate DM AWR Report
Jupyterbook clear console output
Microservice link risk analysis
布隆过滤器
Gartner focuses on low code development in China how UNIPRO practices "differentiation"
AKK菌——下一代有益菌
PyTorch量化实践(1)
激发新动能 多地发力数字经济
Prediction and regression of stacking integrated model
根据肠道微生物组重新思考健康饮食
1-21 JSONP接口
Ssh server configuration file parameter permitrootlogin introduction
1-19 using CORS to solve interface cross domain problems
jupyterbook 清空控制台输出