2 # Run the functest-kubernetes on master node for checking
9 if [ -z "${K8S_MASTER_IP}" ]
11 echo "Error:K8S_MASTER_IP is empty."
12 echo "Please input the k8s master ip address."
14 echo "./functest.sh 10.1.1.1"
19 cat <<EOF > "${HOME}/k8.creds"
20 export KUBERNETES_PROVIDER=local
21 export KUBE_MASTER_URL=https://${K8S_MASTER_IP}:6443
22 export KUBE_MASTER_IP=${K8S_MASTER_IP}
25 mkdir -p "${HOME}/functest/results"
27 sudo docker run --rm -e DEPLOY_SCENARIO=k8-nosdn-nofeature-noha \
28 -v "${HOME}/k8.creds:/home/opnfv/functest/conf/env_file" \
29 -v "${HOME}/functest/results:/home/opnfv/functest/results" \
30 -v "${HOME}/.kube/config:/root/.kube/config" opnfv/functest-kubernetes-healthcheck:latest \
31 /bin/bash -c 'run_tests -r -t all'