diff options
author | Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com> | 2018-09-15 15:23:13 +0800 |
---|---|---|
committer | Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com> | 2019-02-21 12:28:05 +0000 |
commit | df0f60c3ef008bf555eb780f020475c79b627ab8 (patch) | |
tree | d2b4facbd21eee777d8b01957a8b9be5c5392a74 /utils | |
parent | 302c1958a98a704fef7b47f37d1ce2fc0016ba95 (diff) |
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 <Gabriel.yuyang@huawei.com>
(cherry picked from commit d06192b9ff24020cc20f903d939714e2a09a86c2)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/k8s_setup/k8s_config_pre.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/k8s_setup/k8s_config_pre.sh b/utils/k8s_setup/k8s_config_pre.sh index 01def4d1..38e71d23 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 |