Small corrections how to curl eviction endpoint
This commit is contained in:
@@ -61,17 +61,17 @@ itself. To attempt an eviction (perhaps more REST-precisely, to attempt to
|
|||||||
{
|
{
|
||||||
"apiVersion": "policy/v1alpha1",
|
"apiVersion": "policy/v1alpha1",
|
||||||
"kind": "Eviction",
|
"kind": "Eviction",
|
||||||
|
"metadata": {
|
||||||
"name": "quux",
|
"name": "quux",
|
||||||
"namespace": "default"
|
"namespace": "default"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
and here is how you would attempt this with `curl`
|
You can attempt an eviction using `curl`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -v -X POST -H 'Content-type: application/json'
|
$ curl -v -H 'Content-type: application/json' http://127.0.0.1:8080/api/v1/namespaces/default/pods/quux/eviction -d @eviction.json
|
||||||
http://127.0.0.1:8080/api/v1/namespaces/default/pods/quux/eviction -d
|
|
||||||
eviction.json
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The API can respond in one of three ways.
|
The API can respond in one of three ways.
|
||||||
|
|||||||
Reference in New Issue
Block a user