mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix sandbox.json instructions for containerd 1.1
Annotations aren't part of the PodSandboxMetadata but rather part of the PodSandboxConfig object. crictl's parsing logic seems to ignore extraneous fields so it silently fails to create pods using the untrusted workload runtime. See: https://github.com/kubernetes-sigs/cri-tools/blob/v1.13.0/vendor/k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2/api.pb.go#L775
This commit is contained in:
@@ -78,10 +78,10 @@ $ cat > sandbox.json << EOL
|
||||
"name": "nginx-sandbox",
|
||||
"namespace": "default",
|
||||
"attempt": 1,
|
||||
"uid": "hdishd83djaidwnduwk28bcsb",
|
||||
"annotations": {
|
||||
"io.kubernetes.cri.untrusted-workload": "true"
|
||||
}
|
||||
"uid": "hdishd83djaidwnduwk28bcsb"
|
||||
},
|
||||
"annotations": {
|
||||
"io.kubernetes.cri.untrusted-workload": "true"
|
||||
},
|
||||
"linux": {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user