I have add the windows-node to k8s cluster.
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
k8s-master Ready control-plane 96d v1.26.4 192.168.88.59 <none> Ubuntu 22.04.1 LTS 5.19.0-43-generic containerd://1.6.20
k8s-worker3-win Ready <none> 13d v1.26.0 192.168.88.63 <none> Windows Server 2019 Standard 10.0.17763.379 containerd://1.6.20
but when i apply a deployment,there is a error. how can i handle this?
deployment.yaml:
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4 name: windows-servercore-deployment
5 spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: windows-servercore
10 template:
11 metadata:
12 labels:
13 app: windows-servercore
14 spec:
15 nodeName: k8s-worker3-win
16 tolerations:
17 - key: "os"
18 operator: "Equal"
19 value: "windows"
20 effect: "NoSchedule"
21 containers:
22 - name: windows-servercore
23 image: mcr.microsoft.com/windows/servercore:1809
24 resources:
25 limits:
26 cpu: 4
27 memory: 8Gi
28 requests:
29 cpu: 2
30 memory: 2Gi
k apply -f ./win-deployment.yaml
error:
“RunPodSandbox from runtime service failed” err="rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: hcs::CreateComputeSystem.