I'm doing some work with the Kata Containers v2 runtime, and was trying to test it using crictl
First I created a pair of YAML documents: -
metadata:
attempt: 1
name: busybox-sandbox
namespace: default
uid: hdishd83djaidwnduwk28bcsb
log_directory: /tmp
linux:
namespaces:
options: {}
EOF
{
"metadata": {
"name": "busybox"
},
"image":{
"image": "busybox"
},
"command": [
"top"
],
"log_path":"busybox.log",
"linux": {
}
}
EOF
and then I used the first of those to create a Pod Sandbox: -
sandbox=$(crictl runp -r kata podsandbox-config.yaml)
However, the resulting pod soon disappeared - I managed to check its state before it disappeared: -
crictl pods | grep kata
9fafade8c3216 23 seconds ago NotReady busybox-sandbox default 1 kata
65fc059b8129d 40 minutes ago Ready nginx-kata default 0 kata
and inspected the NotReady pod: -
crictl inspectp 9fafade8c3216 | jq .status.state
"SANDBOX_NOTREADY"
No comments:
Post a Comment