mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
kubernetes: give more resources to worker nodes.
The sock-shop demo[0] requires around 5G of images on a worker node and 3G of RAM (if there is only one worker node and therefore everything runs on that node). Since the master is more than happy with the 4G disk and 1G RAM it is given today split the settings into master and node specific and bump only the latter. KUBE_PORT_BASE is unused and was already removed in54ddde0d43
but accidentally reintroduced (by me) in62aa9248a4
, whack it again. [0] https://microservices-demo.github.io/microservices-demo Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
cf2d88bb83
commit
b6725a1b11
@ -2,10 +2,14 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
: ${KUBE_PORT_BASE:=2222}
|
: ${KUBE_MASTER_VCPUS:=2}
|
||||||
: ${KUBE_VCPUS:=2}
|
: ${KUBE_MASTER_MEM:=1024}
|
||||||
: ${KUBE_MEM:=1024}
|
: ${KUBE_MASTER_DISK:=4G}
|
||||||
: ${KUBE_DISK:=4G}
|
|
||||||
|
: ${KUBE_NODE_VCPUS:=2}
|
||||||
|
: ${KUBE_NODE_MEM:=4096}
|
||||||
|
: ${KUBE_NODE_DISK:=8G}
|
||||||
|
|
||||||
: ${KUBE_NETWORKING:=default}
|
: ${KUBE_NETWORKING:=default}
|
||||||
: ${KUBE_RUN_ARGS:=}
|
: ${KUBE_RUN_ARGS:=}
|
||||||
: ${KUBE_EFI:=}
|
: ${KUBE_EFI:=}
|
||||||
@ -19,6 +23,10 @@ if [ $# -eq 0 ] ; then
|
|||||||
img="kube-master"
|
img="kube-master"
|
||||||
data=""
|
data=""
|
||||||
state="kube-master-state"
|
state="kube-master-state"
|
||||||
|
|
||||||
|
: ${KUBE_VCPUS:=$KUBE_MASTER_VCPUS}
|
||||||
|
: ${KUBE_MEM:=$KUBE_MASTER_MEM}
|
||||||
|
: ${KUBE_DISK:=$KUBE_MASTER_DISK}
|
||||||
elif [ $# -gt 1 ] ; then
|
elif [ $# -gt 1 ] ; then
|
||||||
case $1 in
|
case $1 in
|
||||||
''|*[!0-9]*)
|
''|*[!0-9]*)
|
||||||
@ -36,6 +44,10 @@ elif [ $# -gt 1 ] ; then
|
|||||||
shift
|
shift
|
||||||
data="${*}"
|
data="${*}"
|
||||||
state="kube-${name}-state"
|
state="kube-${name}-state"
|
||||||
|
|
||||||
|
: ${KUBE_VCPUS:=$KUBE_NODE_VCPUS}
|
||||||
|
: ${KUBE_MEM:=$KUBE_NODE_MEM}
|
||||||
|
: ${KUBE_DISK:=$KUBE_NODE_DISK}
|
||||||
else
|
else
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo " - Boot master:"
|
echo " - Boot master:"
|
||||||
|
Loading…
Reference in New Issue
Block a user