mirror of https://github.com/easzlab/kubeasz.git
fix: default dns domain #978
parent
7a97837901
commit
3dc47c9146
|
@ -46,7 +46,7 @@ CLUSTER_CIDR="172.20.0.0/16"
|
|||
NODE_PORT_RANGE="30000-32767"
|
||||
|
||||
# Cluster DNS Domain
|
||||
CLUSTER_DNS_DOMAIN="cluster.local."
|
||||
CLUSTER_DNS_DOMAIN="cluster.local"
|
||||
|
||||
# -------- Additional Variables (don't change the default value right now)---
|
||||
# Binaries Directory
|
||||
|
|
|
@ -50,7 +50,7 @@ CLUSTER_CIDR="172.20.0.0/16"
|
|||
NODE_PORT_RANGE="30000-32767"
|
||||
|
||||
# Cluster DNS Domain
|
||||
CLUSTER_DNS_DOMAIN="cluster.local."
|
||||
CLUSTER_DNS_DOMAIN="cluster.local"
|
||||
|
||||
# -------- Additional Variables (don't change the default value right now) ---
|
||||
# Binaries Directory
|
||||
|
|
9
ezctl
9
ezctl
|
@ -389,9 +389,16 @@ function start-aio(){
|
|||
HOST_IP=$(ip a|grep "$HOST_IF$"|head -n1|awk '{print $2}'|cut -d'/' -f1)
|
||||
fi
|
||||
set -u
|
||||
|
||||
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
|
||||
/bin/cp -f example/hosts.allinone "clusters/default/hosts"
|
||||
sed -i "s/_cluster_name_/default/g" "clusters/default/hosts"
|
||||
|
|
Loading…
Reference in New Issue