File tree Expand file tree Collapse file tree
manifests/modules/aiml/inferentia/nodepool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments