From cb47893bdf9640be203f89d86874a3e6e0c393c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 3 Apr 2019 11:05:39 +0200 Subject: [PATCH] Update cluster-deploy --- cluster-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-deploy b/cluster-deploy index d6e89d6..40eecbf 100644 --- a/cluster-deploy +++ b/cluster-deploy @@ -105,8 +105,8 @@ case $CNI in exit 1;; esac -#IP=$(ip addr sh dev $(ip ro sh | grep default | awk '{print $5}') scope global | grep inet | awk '{split($2,addresses,"/"); print addresses[1]}'):6443 -IP=$(ifconfig $(route | grep '^default' | grep -o '[^ ]*$') | grep "inet addr:" | awk '{print $2}' | cut -c6-) +IP=$(ip addr sh dev $(ip ro sh | grep default | awk '{print $5}') scope global | grep inet | awk '{split($2,addresses,"/"); print addresses[1]}') +#IP=$(ifconfig $(route | grep '^default' | grep -o '[^ ]*$') | grep "inet addr:" | awk '{print $2}' | cut -c6-) TOKEN=$(kubeadm token list | tail -n 1 | cut -d ' ' -f 1) HASH=sha256:$(openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //')