diff --git a/projects/kubernetes/boot.sh b/projects/kubernetes/boot.sh index 8c1dfc053..57acfccfa 100755 --- a/projects/kubernetes/boot.sh +++ b/projects/kubernetes/boot.sh @@ -1,4 +1,8 @@ #!/bin/bash -eu +: ${KUBE_PORT_BASE:=2222} +: ${KUBE_VCPUS:=2} +: ${KUBE_MEM:=4096} +: ${KUBE_DISK:=4G} : ${KUBE_RUN_ARGS:=} if [ $# -eq 0 ] ; then img="kube-master" @@ -31,4 +35,4 @@ else fi set -x rm -rf "${state}" -../../bin/linuxkit run ${KUBE_RUN_ARGS} -cpus 2 -mem 4096 -state "${state}" -disk size=4G -data "${data}" "${img}" +../../bin/linuxkit run ${KUBE_RUN_ARGS} -cpus ${KUBE_VCPUS} -mem ${KUBE_MEM} -state "${state}" -disk size=${KUBE_DISK} -data "${data}" "${img}"