kubernetes: allow configuration of networking

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-07-25 16:10:51 +01:00
parent 8acecf1b62
commit 6c3dd4e54a

View File

@ -3,6 +3,7 @@
: ${KUBE_VCPUS:=2}
: ${KUBE_MEM:=4096}
: ${KUBE_DISK:=4G}
: ${KUBE_NETWORKING:=default}
: ${KUBE_RUN_ARGS:=}
if [ $# -eq 0 ] ; then
img="kube-master"
@ -35,4 +36,4 @@ else
fi
set -x
rm -rf "${state}"
../../bin/linuxkit run ${KUBE_RUN_ARGS} -cpus ${KUBE_VCPUS} -mem ${KUBE_MEM} -state "${state}" -disk size=${KUBE_DISK} -data "${data}" "${img}"
../../bin/linuxkit run ${KUBE_RUN_ARGS} -networking ${KUBE_NETWORKING} -cpus ${KUBE_VCPUS} -mem ${KUBE_MEM} -state "${state}" -disk size=${KUBE_DISK} -data "${data}" "${img}"