Commit 7c605218 authored by gmarek's avatar gmarek

Small fixes to kubemark scripts

parent 7fa09abe
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"spec": { "spec": {
"containers": [{ "containers": [{
"name": "hollow-kubelet", "name": "hollow-kubelet",
"image": "gcr.io/gmarek-kubernetes/kubemark:latest", "image": "gcr.io/##project##/kubemark:latest",
"ports": [ "ports": [
{"containerPort": 4194}, {"containerPort": 4194},
{"containerPort": 10250}, {"containerPort": 10250},
......
...@@ -59,9 +59,10 @@ gcloud compute copy-files --zone=${ZONE} \ ...@@ -59,9 +59,10 @@ gcloud compute copy-files --zone=${ZONE} \
${KUBE_ROOT}/test/kubemark/configure-kubectl.sh \ ${KUBE_ROOT}/test/kubemark/configure-kubectl.sh \
hollow-cluster-master:~ hollow-cluster-master:~
gcloud compute ssh --zone=${ZONE} hollow-cluster-master --command="chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh && ./start-kubemark-master.sh" gcloud compute ssh --zone=${ZONE} hollow-cluster-master --command="chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh && sudo ./start-kubemark-master.sh"
sed "s/##masterip##/\"${MASTER_IP}\"/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet_template.json > ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json sed "s/##masterip##/\"${MASTER_IP}\"/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet_template.json > ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
sed -i'' -e "s/##numreplicas##/${NUM_MINIONS:-10}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json sed -i'' -e "s/##numreplicas##/${NUM_MINIONS:-10}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
sed -i'' -e "s/##project##/${PROJECT}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
kubectl create -f ${KUBE_ROOT}/test/kubemark/kubemark-ns.json kubectl create -f ${KUBE_ROOT}/test/kubemark/kubemark-ns.json
kubectl create -f ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json --namespace="kubemark" kubectl create -f ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json --namespace="kubemark"
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