Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default containerd socket path #724

Merged
merged 2 commits into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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