diff options
author | Linda Wang <wangwulin@huawei.com> | 2018-03-16 02:04:05 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2018-03-16 02:04:05 +0000 |
commit | 976a5aa1011379c4a82b13f8dde4b76cbec1ba16 (patch) | |
tree | 0e8f98c4b2d9809b217e87264336c75f2e99c813 | |
parent | 50695387dfff29897a1b6c4c9442f786a4bc4398 (diff) |
Fix k8s config
Change-Id: I7ff4e53bf8c08239bd22cc09774a54c1f013b891
Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rwxr-xr-x | ci/k8.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5,15 +5,13 @@ opnfvfeature=$1 juju scp kubernetes-master/0:/home/ubuntu/config ~/joid_config/config -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 KUBECONFIG=~/joid_config/config +export KUBERNETES_PROVIDER=local export KUBE_MASTER_IP=${KUBE_MASTER_IP} export KUBE_MASTER_URL=${KUBE_MASTER_URL} EOF |