You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubeadm join fails
error like
time="2024-05-11T07:31:56+08:00" level=fatal msg="getting status of runtime: invalid character 'P' in string escape code"
run crictl.exe info
show error like this
time="2024-05-11T07:31:56+08:00" level=fatal msg="getting status of runtime: invalid character 'P' in string escape code"
containerd on Windows may not escape the return message which may
result in invalid JSON in crictl info.
Message from containerd:
cni config load failed: no network config found in C:\Program Files
\containerd\cni\conf: cni plugin
not initialized: failed to load cni config
Fixes: kubernetes-sigs#1426
kubeadm join fails
error like
time="2024-05-11T07:31:56+08:00" level=fatal msg="getting status of runtime: invalid character 'P' in string escape code"
run crictl.exe info
show error like this
time="2024-05-11T07:31:56+08:00" level=fatal msg="getting status of runtime: invalid character 'P' in string escape code"
Follow the instructions to install contrainerd
https://github.com/containerd/containerd/blob/main/docs/getting-started.md
Stop-Service containerd
$Version="1.7.13" # update to your preferred version
$Arch = "amd64" # arm64 also available
curl.exe -LO https://github.com/containerd/containerd/releases/download/v$Version/containerd-$Version-windows-$Arch.tar.gz
tar.exe xvf .\containerd-$Version-windows-amd64.tar.gz
Copy-Item -Path .\bin -Destination $Env:ProgramFiles\containerd -Recurse -Force
$Path = [Environment]::GetEnvironmentVariable("PATH", "Machine") + [IO.Path]::PathSeparator + "$Env:ProgramFiles\containerd"
[Environment]::SetEnvironmentVariable( "Path", $Path, "Machine")
$Env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
containerd.exe config default | Out-File $Env:ProgramFiles\containerd\config.toml -Encoding ascii
Get-Content $Env:ProgramFiles\containerd\config.toml
containerd.exe --register-service
Start-Service containerd
Environment:
Microsoft Windows [version 10.0.17763.5696]
crictl version 1.30.0
contrainerd RuntimeVersion: v1.7.13
The text was updated successfully, but these errors were encountered: