Bump build-heavy LXCs (auth/management/noticeboard/add-app) to 1GB — avoid OOM (exit 137)
This commit is contained in:
parent
52e85cfc53
commit
242f170edb
2 changed files with 4 additions and 4 deletions
|
|
@ -116,7 +116,7 @@ pvesh get "/pools/${POOL}" &>/dev/null && POOL_OPT="--pool ${POOL}"
|
||||||
msg_info "Creating LXC ${LXC_ID} (hotel-manage-${APP_NAME} at 10.10.10.${LAST_OCTET})"
|
msg_info "Creating LXC ${LXC_ID} (hotel-manage-${APP_NAME} at 10.10.10.${LAST_OCTET})"
|
||||||
pct create "$LXC_ID" "$TEMPLATE" \
|
pct create "$LXC_ID" "$TEMPLATE" \
|
||||||
--hostname "hotel-manage-${APP_NAME}" \
|
--hostname "hotel-manage-${APP_NAME}" \
|
||||||
--memory 512 \
|
--memory 1024 \
|
||||||
--cores 1 \
|
--cores 1 \
|
||||||
--rootfs "${STORAGE}:8" \
|
--rootfs "${STORAGE}:8" \
|
||||||
--net0 "name=eth0,bridge=vmbr1,ip=10.10.10.${LAST_OCTET}/24,gw=10.10.10.1" \
|
--net0 "name=eth0,bridge=vmbr1,ip=10.10.10.${LAST_OCTET}/24,gw=10.10.10.1" \
|
||||||
|
|
|
||||||
|
|
@ -576,7 +576,7 @@ deploy_auth() {
|
||||||
msg_step "2/6 Auth service (LXC 101 · 10.10.10.101)"
|
msg_step "2/6 Auth service (LXC 101 · 10.10.10.101)"
|
||||||
|
|
||||||
msg_info "Creating LXC 101"
|
msg_info "Creating LXC 101"
|
||||||
create_lxc 101 "10.10.10.101" "auth" 512 1
|
create_lxc 101 "10.10.10.101" "auth" 1024 1
|
||||||
msg_ok "LXC 101 created"
|
msg_ok "LXC 101 created"
|
||||||
|
|
||||||
msg_info "Installing Docker"
|
msg_info "Installing Docker"
|
||||||
|
|
@ -698,7 +698,7 @@ deploy_management() {
|
||||||
msg_step "5/6 Management (LXC 105 · 10.10.10.105)"
|
msg_step "5/6 Management (LXC 105 · 10.10.10.105)"
|
||||||
|
|
||||||
msg_info "Creating LXC 105"
|
msg_info "Creating LXC 105"
|
||||||
create_lxc 105 "10.10.10.105" "management" 512 1
|
create_lxc 105 "10.10.10.105" "management" 1024 1
|
||||||
msg_ok "LXC 105 created"
|
msg_ok "LXC 105 created"
|
||||||
|
|
||||||
msg_info "Installing Docker"
|
msg_info "Installing Docker"
|
||||||
|
|
@ -738,7 +738,7 @@ deploy_noticeboard() {
|
||||||
msg_step "6/6 Noticeboard (LXC 112 · 10.10.10.112)"
|
msg_step "6/6 Noticeboard (LXC 112 · 10.10.10.112)"
|
||||||
|
|
||||||
msg_info "Creating LXC 112"
|
msg_info "Creating LXC 112"
|
||||||
create_lxc 112 "10.10.10.112" "noticeboard" 512 1
|
create_lxc 112 "10.10.10.112" "noticeboard" 1024 1
|
||||||
msg_ok "LXC 112 created"
|
msg_ok "LXC 112 created"
|
||||||
|
|
||||||
msg_info "Installing Docker"
|
msg_info "Installing Docker"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue