Skip to content

Commit 65aa363

Browse files
authored
fix: Workaround for SOCI/AMI issue : (#1848)
1 parent c12841a commit 65aa363

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

manifests/modules/aiml/inferentia/nodepool/nodepool.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,21 @@ spec:
4949
Content-Type: text/x-shellscript; charset="us-ascii"
5050
5151
#!/bin/bash
52+
# SOCI tuning
5253
sed -i "s/^max_concurrent_downloads_per_image = .*$/max_concurrent_downloads_per_image = 10/" /etc/soci-snapshotter-grpc/config.toml
5354
sed -i "s/^max_concurrent_unpacks_per_image = .*$/max_concurrent_unpacks_per_image = 10/" /etc/soci-snapshotter-grpc/config.toml
5455
56+
# Workaround for https://github.com/awslabs/amazon-eks-ami/issues/2710
57+
# Import pause image into SOCI snapshotter before kubelet starts
58+
# Can be removed once AMI includes fix from PR #2717
59+
mkdir -p /etc/systemd/system/kubelet.service.d
60+
cat > /etc/systemd/system/kubelet.service.d/prestart-load-pause-ctr.conf << 'EOF'
61+
[Service]
62+
ExecStartPre=/usr/bin/ctr --namespace=k8s.io image import --snapshotter soci --local /etc/eks/pause.tar
63+
ExecStartPre=/usr/bin/ctr --namespace=k8s.io image label localhost/kubernetes/pause:latest io.cri-containerd.pinned=pinned
64+
EOF
65+
systemctl daemon-reload
66+
5567
--//
5668
Content-Type: application/node.eks.aws
5769

0 commit comments

Comments
 (0)