当前位置:网站首页>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 }
边栏推荐
- Binary search tree (1) - concept and C language implementation
- B_QuRT_User_Guide(33)
- Big God explains open source buff gain strategy live broadcast
- Lumiprobe dye hydrazide - BDP FL hydrazide solution
- 杰理之用测试盒配对软件修改注意点【篇】
- Evolution of screen display technology
- 判断js对象是否为空的方式
- MySQL简介、详细安装步骤及使用 | 黑马程序员
- No "history of blood and tears" in home office | community essay solicitation
- How do I get the largest K massive data
猜你喜欢

Lvalue reference and lvalue reference

AVL平衡二叉树(一) - 概念与C语言实现

Lumiprobe染料酰肼丨BDP FL 酰肼方案

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

基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享

Evolution of screen display technology

Lumiprobe染料 NHS 酯丨BDP FL NHS 酯研究

Lumiprobe biotin phosphimide (hydroxyproline) instructions
![Jerry's touch key recognition process [chapter]](/img/3e/bb73c735d0a7c7a26989c65a432dad.png)
Jerry's touch key recognition process [chapter]

为什么vscode用久了电脑速度变慢?
随机推荐
【数字IC应届生职业规划】Chap.1 IC行业产业链概述及代表企业大厂汇总
Peking University ACM problems 1000:a+b problem
Summary of PHP file upload (garbled code, move failure, permission, display picture)
Heartbeat uses NFS to make MySQL highly available based on CRM
PHP require/include 区别
Lumiprobe protein quantitation - qudye Protein Quantitation Kit
Jerry's determination of detection sensitivity level [chapter]
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
On the charm of code language
在线教育项目用户登录和注册
B_QuRT_User_Guide(33)
BioVendor sRAGE Elisa试剂盒测试原理和注意事项
Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)
What are database OLAP and OLTP? Same and different? Applicable scenarios
NLP paper lead reading | what about the degradation of text generation model? Simctg tells you the answer
Comparison between QT and other GUI Libraries
Halcon knowledge: check the measurement objects [1]
翻转链表II[翻转链表3种方式+dummyHead/头插法/尾插法]
Informatics Olympiad 1362: family problems
Lumiprobe cell biology - dia, instructions for lipophilic tracer