Skip to content

Commit

Permalink
Merge pull request #9 from paradeum-team/jyliu
Browse files Browse the repository at this point in the history
fix: 默认ntp_server 改为ntp.aliyun.com, coredns forward 改为 从变量upstream_dn…
  • Loading branch information
ss75710541 authored Dec 17, 2021
2 parents 640a98e + b1e1703 commit 8d71498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ upstream_dns_ips="10.8.255.1 10.8.255.2 114.114.114.114"
# 是否安装时间同步服务(chronyd),True表示安装,False表示不安装,默认True,只有已经安装了 ntp 时间同步服务的情况下不安装;
chronyd_install="True"
# chronyd_install=True 时才生效,定义外部 ntp_server, ntp.cloud.aliyuncs.com 为阿里云内部 ntp 同步 server, 非阿里云主机访问可以改为 ntp.aliyun.com, 或自定义的 ntp server
ntp_server="ntp.cloud.aliyuncs.com"
ntp_server="ntp.aliyun.com"

export LOCAL_IP=`ip a show $LOCAL_ENNAME|awk '/inet.*brd.*'$LOCAL_ENNAME'/{print $2}'|awk -F "/" '{print $1}'` # 无需改动
if [ -z "$LOCAL_IP" ];then
Expand Down
2 changes: 1 addition & 1 deletion roles/k8s-masters/templates/coredns-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
ttl 30
}
prometheus :9153
forward . {{master_vip}}:53 {
forward . {{upstream_dns_ips}} {
max_concurrent 1000
}
cache 30
Expand Down

0 comments on commit 8d71498

Please sign in to comment.