[kata-containers] Update configuration to support kata 3.4.0 (#13077)

kata containers added create_container_timeout parameter.
If this parameter is missing, the new version of Kata cannot create containers properly and will encounter an error:  failed to create shim task: context deadline exceeded
This commit is contained in:
PangQingcheng
2026-04-22 15:33:54 +08:00
committed by GitHub
parent dee8a18ccc
commit 8c3ebff2b9

View File

@@ -678,6 +678,16 @@ experimental=[]
# (default: false)
# enable_pprof = true
{% if kata_containers_version is version('3.4.0', '>=') %}
# Indicates the CreateContainer request timeout needed for the workload(s)
# It using guest_pull this includes the time to pull the image inside the guest
# Defaults to 60 second(s)
# Note: The effective timeout is determined by the lesser of two values: runtime-request-timeout from kubelet config
# (https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/#:~:text=runtime%2Drequest%2Dtimeout) and create_container_timeout.
# In essence, the timeout used for guest pull=runtime-request-timeout<create_container_timeout?runtime-request-timeout:create_container_timeout.
create_container_timeout = 60
{% endif %}
# WARNING: All the options in the following section have not been implemented yet.
# This section was added as a placeholder. DO NOT USE IT!
[image]