File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,9 @@ launch_stack() {
355355
356356 log_info " Launching core Obol Stack services..."
357357 if ! kind get clusters | grep -q " $STACK_NAME " ; then
358+ # Set memory limit for Kind container
359+ export KIND_EXPERIMENTAL_DOCKER_CONTAINER_EXTRA_ARGS=" --memory=35g"
360+
358361 # If host=1, map host port 80 and 443 into the cluster and enable an ingress-controller and some default routes
359362 if [[ " $__host " -ne 0 ]]; then
360363 log_info " Creating Kind cluster for Obol Stack in host mode..."
@@ -363,6 +366,9 @@ launch_stack() {
363366 log_info " Creating Kind cluster for Obol Stack..."
364367 kind create cluster --name " $STACK_NAME " --config ./manifests/kind_no_host.yaml
365368 fi
369+
370+ # Unset the memory limit after cluster creation
371+ unset KIND_EXPERIMENTAL_DOCKER_CONTAINER_EXTRA_ARGS
366372 else
367373 # Cluster exists, check if we need host mode but don't have port mappings
368374 if [[ " $__host " -ne 0 ]] && ! check_cluster_port_mappings " $STACK_NAME " ; then
You can’t perform that action at this time.
0 commit comments