当前位置:网站首页>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 }
边栏推荐
- 顺祝老吴的聚会
- 1. Summary of wechat applet page Jump methods; 2. the navigateto stack does not jump to the tenth floor
- "Trust machine" empowers development
- Zhoushaojian, rare
- 1-15 nodemon
- 1-21 jsonp interface
- Jupyter notebook/lab switch CONDA environment
- The Three Musketeers: One for All!
- 1-14 express managed static resources
- Stimulate new kinetic energy to develop digital economy in multiple places
猜你喜欢

本地浏览器打开远程服务器上的Jupyter Notebook/Lab以及常见问题&设置

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

Do machine learning jobs require graduate students?

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

谈谈数字化转型的几个关键问题

It is urgent for enterprises to protect API security

5g demand in smart medicine

Neurotransmetteurs excitateurs - glutamate et santé cérébrale

Pytorch quantitative practice (1)

Open the jupyter notebook/lab and FAQ & settings on the remote server with the local browser
随机推荐
Three techniques for reducing debugging time of embedded software
模板方法模式介绍与示例
[untitled] first time to participate in CSDN activities
5g demand in smart medicine
1-3 使用SQL管理数据库
sdfsdf
Develop technology - get time 10 minutes ago
1-18 create the most basic express server & API module for creating routes
Windbg调试工具介绍
Gartner focuses on low code development in China how UNIPRO practices "differentiation"
【回溯】全排列 II leetcode47
攻防演练中的防泄露全家福
Jupyterbook clear console output
艾芬医生事件解析
Stinky tofu made by Grandma
Ten security measures against unauthorized access attacks
【回溯】全排列 leetcode46
Stimulate new kinetic energy to develop digital economy in multiple places
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
Clickhouse distributed table engine