File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
content/en/docs/tasks/administer-cluster Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,28 @@ Pod can be thought of as a kind of policy-controlled DELETE operation on the Pod
109
109
itself. To attempt an eviction (more precisely: to attempt to
110
110
* create* an Eviction), you POST an attempted operation. Here's an example:
111
111
112
+ {{< tabs name="Eviction_example" >}}
113
+ {{% tab name="policy/v1" %}}
114
+ {{< note >}}
115
+ ` policy/v1 ` Eviction is available in v1.22+. Use ` policy/v1beta1 ` with prior releases.
116
+ {{< /note >}}
117
+
118
+ ``` json
119
+ {
120
+ "apiVersion" : " policy/v1" ,
121
+ "kind" : " Eviction" ,
122
+ "metadata" : {
123
+ "name" : " quux" ,
124
+ "namespace" : " default"
125
+ }
126
+ }
127
+ ```
128
+ {{% /tab %}}
129
+ {{% tab name="policy/v1beta1" %}}
130
+ {{< note >}}
131
+ Deprecated in v1.22 in favor of ` policy/v1 `
132
+ {{< /note >}}
133
+
112
134
``` json
113
135
{
114
136
"apiVersion" : " policy/v1beta1" ,
@@ -119,6 +141,8 @@ itself. To attempt an eviction (more precisely: to attempt to
119
141
}
120
142
}
121
143
```
144
+ {{% /tab %}}
145
+ {{< /tabs >}}
122
146
123
147
You can attempt an eviction using ` curl ` :
124
148
You can’t perform that action at this time.
0 commit comments