Skip to content

Commit

Permalink
Remove deprecated --container-runtime flag from kubelet config.
Browse files Browse the repository at this point in the history
The flag has been removed in k8s v1.27; I verified removing this flag
works not only with k8s v1.27, but also v1.24 -> v1.26.

Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
  • Loading branch information
ctalledo committed Aug 15, 2023
1 parent ffe0e86 commit 7c9a3d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion k8s/config/crio-kubelet-options
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--container-runtime=remote
--container-runtime-endpoint=unix:///var/run/crio/crio.sock
--image-service-endpoint=unix:///var/run/crio/crio.sock
--runtime-cgroups=/system.slice/crio.service
Expand Down
2 changes: 1 addition & 1 deletion k8s/scripts/sysbox-deploy-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ function main() {

# Switch the K8s runtime to CRI-O
#
# Note: this will configure the Kubelet to use CRI-O and restart it;,
# Note: this will configure the Kubelet to use CRI-O and restart it,
# thereby killing all pods on the K8s node (including this daemonset).
# The K8s control plane will then re-create the pods, but this time
# with CRI-O. The operation can take up to 1 minute.
Expand Down

0 comments on commit 7c9a3d8

Please sign in to comment.