Merge pull request #99971 from ibabou/update-containerd

Update containerd config for gce
This commit is contained in:
Kubernetes Prow Robot 2021-03-16 15:56:56 -07:00 committed by GitHub
commit 158e1464ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1587,8 +1587,16 @@ function Configure_Containerd {
$config_dir = [System.IO.Path]::GetDirectoryName($config_path)
New-Item $config_dir -ItemType 'directory' -Force | Out-Null
Set-Content ${config_path} @"
[plugins.scheduler]
schedule_delay = '0s'
startup_delay = '0s'
[plugins.cri]
sandbox_image = 'INFRA_CONTAINER_IMAGE'
[plugins.cri.containerd]
snapshotter = 'windows'
default_runtime_name = 'runhcs-wcow-process'
disable_snapshot_annotations = true
discard_unpacked_layers = true
[plugins.cri.cni]
bin_dir = 'CNI_BIN_DIR'
conf_dir = 'CNI_CONF_DIR'