curl -X GETPOST http://<kube-apiserver-ip>:<port>/api/v1/namespaces/default/pods 'JSON\
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "nginx",
"labels": {
"app": "myapp",
"type": "front-end"
}
},
"spec": {
"containers": [
{
"name": "nginx",
"image": "nginx:1.14.2",
"ports": [
{
"containerPort": 80
}
]
}
]
}
}' |