fix: default dns domain #978

pull/992/head
gjmzj 2021-02-04 22:00:22 +08:00
parent 7a97837901
commit 3dc47c9146
3 changed files with 10 additions and 3 deletions

View File

@ -46,7 +46,7 @@ CLUSTER_CIDR="172.20.0.0/16"
NODE_PORT_RANGE="30000-32767" NODE_PORT_RANGE="30000-32767"
# Cluster DNS Domain # Cluster DNS Domain
CLUSTER_DNS_DOMAIN="cluster.local." CLUSTER_DNS_DOMAIN="cluster.local"
# -------- Additional Variables (don't change the default value right now)--- # -------- Additional Variables (don't change the default value right now)---
# Binaries Directory # Binaries Directory

View File

@ -50,7 +50,7 @@ CLUSTER_CIDR="172.20.0.0/16"
NODE_PORT_RANGE="30000-32767" NODE_PORT_RANGE="30000-32767"
# Cluster DNS Domain # Cluster DNS Domain
CLUSTER_DNS_DOMAIN="cluster.local." CLUSTER_DNS_DOMAIN="cluster.local"
# -------- Additional Variables (don't change the default value right now) --- # -------- Additional Variables (don't change the default value right now) ---
# Binaries Directory # Binaries Directory

9
ezctl
View File

@ -389,9 +389,16 @@ function start-aio(){
HOST_IP=$(ip a|grep "$HOST_IF$"|head -n1|awk '{print $2}'|cut -d'/' -f1) HOST_IP=$(ip a|grep "$HOST_IF$"|head -n1|awk '{print $2}'|cut -d'/' -f1)
fi fi
set -u set -u
logger info "get local host ipadd: $HOST_IP" logger info "get local host ipadd: $HOST_IP"
# allow ssh login using key locally
if [[ ! -e /root/.ssh/id_rsa ]]; then
logger debug "generate ssh key pair"
ssh-keygen -t rsa -b 2048 -N '' -f /root/.ssh/id_rsa > /dev/null
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
ssh-keyscan -t ecdsa -H "$HOST_IP" >> /root/.ssh/known_hosts
fi
new default new default
/bin/cp -f example/hosts.allinone "clusters/default/hosts" /bin/cp -f example/hosts.allinone "clusters/default/hosts"
sed -i "s/_cluster_name_/default/g" "clusters/default/hosts" sed -i "s/_cluster_name_/default/g" "clusters/default/hosts"