当前位置:网站首页>coredns 修改upstream
coredns 修改upstream
2022-06-30 20:20:00 【weixin_40455124】
coredns 默认upstream/forword 是8.8.8.8,如果不修改很容易crash,需要可以参考 :https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/。
coredns 默认如下:
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 }
因此如果是使用自己创建的coredns image,可以修改/etc/resolv.conf文件内容,有可以修改configMap,然后delete 已经存在pod达到修改的目的。
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 }
边栏推荐
- Maya house modeling
- Lumiprobe copper free click chemical solution
- To eliminate bugs, developers must know several bug exploration and testing artifacts.
- 微信小程序怎么实现圆心进度条
- Openfire solves the problem of Chinese garbled code after using MySQL database
- 左值引用和右值引用
- DEX file parsing - Method_ IDS resolution
- Basic concepts of tree
- Great God detailed open source Buff gain Introduction 丨 Live
- Huffman Tree (1) Basic Concept and C - language Implementation
猜你喜欢
![Halcon knowledge: check the measurement objects [1]](/img/0a/3a12e281fcb201d8d11b25dac4145a.png)
Halcon knowledge: check the measurement objects [1]

MySQL:SQL概述及数据库系统介绍 | 黑马程序员

Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)

亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售

杰理之触摸按键识别流程【篇】

B_QuRT_User_Guide(31)

Lumiprobe cell biology - dia, instructions for lipophilic tracer

毕业设计

The Commission is so high that everyone can participate in the new programmer's partner plan

二叉查找树(一) - 概念与C语言实现
随机推荐
B_QuRT_User_Guide(31)
Peking University ACM problems 1005:i think I need a houseboat
北京大学ACM Problems 1004:Financial Management
B_QuRT_User_Guide(35)
好高的佣金,《新程序员》合伙人计划来袭,人人皆可参与
Go language identifier and package name specification
By analyzing more than 7million R & D needs, it is found that these eight programming languages are the most needed by the industry
obsidian配合hugo的使用,让markdown本地编辑软件与在线化无缝衔接
Black apple server system installation tutorial, black apple installation tutorial, teach you how to install black apple in detail [easy to understand]
Jerry's determination of detection sensitivity level [chapter]
19.04 分配器
Openfire在使用MySQL数据库后的中文乱码问题解决
北京大学ACM Problems 1001:Exponentiation
Informatics Olympiad 1362: family problems
大神詳解開源 BUFF 增益攻略丨直播
北京大学ACM Problems 1002:487-3279
第299场
哈夫曼樹(一)基本概念與C語言實現
居家办公没有“血泪史”| 社区征文
RP原型资源分享-购物类App