Skip to content

Commit 5d0c904

Browse files
committed
chore: fix obolup
1 parent 685dfd9 commit 5d0c904

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

obolup/obolup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)