Commit 2c92915f authored by Saad Ali's avatar Saad Ali

Merge pull request #8752 from ZJU-SEL/Fix#8373

Fix #8373 add kubectl for cluster validation
parents 705c2a7d ca0d82dd
...@@ -66,5 +66,7 @@ cp kubernetes/server/kubernetes/server/bin/kube-apiserver \ ...@@ -66,5 +66,7 @@ cp kubernetes/server/kubernetes/server/bin/kube-apiserver \
cp kubernetes/server/kubernetes/server/bin/kubelet \ cp kubernetes/server/kubernetes/server/bin/kubelet \
kubernetes/server/kubernetes/server/bin/kube-proxy binaries/minion kubernetes/server/kubernetes/server/bin/kube-proxy binaries/minion
cp kubernetes/server/kubernetes/server/bin/kubectl binaries/
rm -rf flannel* kubernetes* etcd* rm -rf flannel* kubernetes* etcd*
echo "Done! All your commands locate in ./binaries dir" echo "Done! All your commands locate in ./binaries dir"
...@@ -26,6 +26,8 @@ MASTER="" ...@@ -26,6 +26,8 @@ MASTER=""
MASTER_IP="" MASTER_IP=""
MINION_IPS="" MINION_IPS=""
KUBECTL_PATH=${KUBE_ROOT}/cluster/ubuntu/binaries/kubectl
# Assumed Vars: # Assumed Vars:
# KUBE_ROOT # KUBE_ROOT
function test-build-release { function test-build-release {
......
...@@ -92,7 +92,7 @@ If all things goes right, you will see the below message from console ...@@ -92,7 +92,7 @@ If all things goes right, you will see the below message from console
**All done !** **All done !**
You can also use kubectl command to see if the newly created k8s is working correctly. You can also use `kubectl` command to see if the newly created k8s is working correctly. The `kubectl` binary is under the `cluster/ubuntu/binaries` directory. You can move it into your PATH. Then you can use the below command smoothly.
For example, use `$ kubectl get minions` to see if you get all your minion nodes comming up and ready. It may take some times for the minions be ready to use like below. For example, use `$ kubectl get minions` to see if you get all your minion nodes comming up and ready. It may take some times for the minions be ready to use like below.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment