docs: add namespace key to pod/container config files

If no namespace field in config files, CRI-O will failed:
 setting pod sandbox name and id: cannot generate pod name without namespace

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu 2020-10-10 10:02:08 +08:00
parent 9a02e6eb88
commit 9834a766aa
6 changed files with 12 additions and 6 deletions

View File

@ -1,6 +1,7 @@
{
"metadata": {
"name": "busybox-container"
"name": "busybox-container",
"namespace": "test.kata"
},
"image": {
"image": "docker.io/library/busybox:latest"

View File

@ -1,7 +1,8 @@
{
"metadata": {
"name": "busybox-pod",
"uid": "busybox-pod"
"uid": "busybox-pod",
"namespace": "test.kata"
},
"hostname": "busybox_host",
"log_directory": "",

View File

@ -1,6 +1,7 @@
{
"metadata": {
"name": "redis-client"
"name": "redis-client",
"namespace": "test.kata"
},
"image": {
"image": "docker.io/library/redis:6.0.8-alpine"

View File

@ -1,7 +1,8 @@
{
"metadata": {
"name": "redis-client-pod",
"uid": "test-redis-client-pod"
"uid": "test-redis-client-pod",
"namespace": "test.kata"
},
"hostname": "redis-client",
"log_directory": "",

View File

@ -1,6 +1,7 @@
{
"metadata": {
"name": "redis-server"
"name": "redis-server",
"namespace": "test.kata"
},
"image": {
"image": "docker.io/library/redis:6.0.8-alpine"

View File

@ -1,7 +1,8 @@
{
"metadata": {
"name": "redis-server-pod",
"uid": "test-redis-server-pod"
"uid": "test-redis-server-pod",
"namespace": "test.kata"
},
"hostname": "redis-server",
"log_directory": "",