summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-03-14 09:48:51 +0000
committerLinda Wang <wangwulin@huawei.com>2018-03-14 09:49:27 +0000
commitda93b6d1c6e69465730b1b4427bee78bed0bb342 (patch)
tree3ca3fb4527e9bdcb0be5b44ce886cd9d7be42f69
parentad7f43d95c6030b5c5c3270932bdbf2cd8de77a7 (diff)
Fix k8s config
Change-Id: Ifc23bb7ba390eea95e138c1e2fc9de878f93f427 Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rwxr-xr-xci/k8.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/ci/k8.sh b/ci/k8.sh
index 6bac446c..2b901d7e 100755
--- a/ci/k8.sh
+++ b/ci/k8.sh
@@ -5,12 +5,17 @@ opnfvfeature=$1
juju scp kubernetes-master/0:/home/ubuntu/config ~/joid_config/config
-configk8(){
-cat <<-EOF
export KUBECONFIG=~/joid_config/config
export KUBERNETES_PROVIDER=local
export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1 | sed "s/^[ \t]*//g"`
export KUBE_MASTER_URL=http://${KUBE_MASTER_IP}:6443
+
+configk8(){
+cat <<-EOF
+export KUBECONFIG=${KUBECONFIG}
+export KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER}
+export KUBE_MASTER_IP=${KUBE_MASTER_IP}
+export KUBE_MASTER_URL=${KUBE_MASTER_URL}
EOF
}