Skip to content

Commit

Permalink
Use default containerd socket path (#724)
Browse files Browse the repository at this point in the history
* Use default containerd socket path

* Create symlink so aws-node can talk to containerd
  • Loading branch information
rafaelgaspar authored Sep 17, 2021
1 parent d03b2ac commit 9576786
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ if [[ "$CONTAINER_RUNTIME" = "containerd" ]]; then
sudo mv /etc/eks/containerd/kubelet-containerd.service /etc/systemd/system/kubelet.service
sudo chown root:root /etc/systemd/system/kubelet.service
sudo chown root:root /etc/systemd/system/sandbox-image.service
ln -sf /run/containerd/containerd.sock /run/dockershim.sock
systemctl daemon-reload
systemctl enable containerd
systemctl restart containerd
Expand Down
2 changes: 1 addition & 1 deletion files/containerd-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = "/var/lib/containerd"
state = "/run/containerd"

[grpc]
address = "/run/dockershim.sock"
address = "/run/containerd/containerd.sock"

[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name = "runc"
Expand Down
2 changes: 1 addition & 1 deletion files/kubelet-containerd.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ExecStart=/usr/bin/kubelet --cloud-provider aws \
--config /etc/kubernetes/kubelet/kubelet-config.json \
--kubeconfig /var/lib/kubelet/kubeconfig \
--container-runtime remote \
--container-runtime-endpoint unix:///run/dockershim.sock \
--container-runtime-endpoint unix:///run/containerd/containerd.sock \
--network-plugin cni $KUBELET_ARGS $KUBELET_EXTRA_ARGS

Restart=on-failure
Expand Down

0 comments on commit 9576786

Please sign in to comment.