From: Yang (Gabriel) Yu Date: Sat, 15 Sep 2018 07:23:13 +0000 (+0800) Subject: bug-fix: get k8s config X-Git-Tag: opnfv-8.0.0~12^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=bottlenecks.git;a=commitdiff_plain;h=d06192b9ff24020cc20f903d939714e2a09a86c2 bug-fix: get k8s config JIRA: BOTTLENECK-243 Geting k8s config using sshpass will fail when frst time loginning to k8s master. Add -o StrictHostKeyChecking=no to input the prompt. Change-Id: Ib9ab3617b6d50ab85be317faf715f751fcda9149 Signed-off-by: Yang (Gabriel) Yu --- diff --git a/utils/k8s_setup/k8s_config_pre.sh b/utils/k8s_setup/k8s_config_pre.sh index 05c3f1c3..96f714bf 100644 --- a/utils/k8s_setup/k8s_config_pre.sh +++ b/utils/k8s_setup/k8s_config_pre.sh @@ -59,8 +59,8 @@ while [[ $# > 0 ]] shift done -if [[ ${INSTALLER_TYPE} == 'compass' ]]; then - sshpass -p root scp root@192.16.1.222:~/.kube/config ${K8S_CONFIG} +if [[ ${INSTALLER_TYPE} == 'compass' ]]; then + sshpass -p root scp -o StrictHostKeyChecking=no root@192.16.1.222:~/.kube/config ${K8S_CONFIG} else echo "BOTTLENECKS EROOR: unrecognized installer" fi