Skip to content

Commit

Permalink
Update gpu ami remediation (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secretions authored Feb 4, 2023
1 parent e249418 commit 0464ed8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions submodules/eks/templates/gpu_cert_setup.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ Content-Type: text/x-shellscript; charset="us-ascii"
!/bin/bash
set -ex
EKS_CONTAINERD_CFG="/etc/eks/containerd/containerd-config.toml"
if [ -z "$(egrep 'certs\.d' $EKS_CONTAINERD_CFG)" ]; then
if [ -n "$(egrep 'plugins\.cri\.containerd\.runtimes\.nvidia' $EKS_CONTAINERD_CFG)" ]; then
printf '\n\n[plugins.cri.registry]\nconfig_path = "/etc/containerd/certs.d:/etc/docker/certs.d"\n' >> $EKS_CONTAINERD_CFG
fi
if [ -n "$(egrep 'plugins\.cri\.containerd\.runtimes\.nvidia' $EKS_CONTAINERD_CFG)" ]; then
sed -i 's/plugins\."io.containerd.grpc.v1.cri"\.registry/plugins.cri.registry/' $EKS_CONTAINERD_CFG
fi


--==MYBOUNDARY==--\

0 comments on commit 0464ed8

Please sign in to comment.