Skip to content

Commit

Permalink
Use secondary EBS volume for containerd data root if available (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimomut authored Sep 10, 2024
1 parent dad63d5 commit da8c21c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ logger() {
}

logger "[start] on_create.sh"

if [[ $(mount | grep /opt/sagemaker) ]]; then
logger "Found secondary EBS volume. Setting containerd data root to /opt/sagemaker/containerd/data-root"
sed -i -e "/^[# ]*root\s*=/c\root = \"/opt/sagemaker/containerd/data-root\"" /etc/eks/containerd/containerd-config.toml
fi

logger "no more steps to run"
logger "[stop] on_create.sh"
logger "[stop] on_create.sh"

0 comments on commit da8c21c

Please sign in to comment.