Skip to content

Commit 3054627

Browse files
authored
Update replicaset.md (#19975)
1 parent 3bf6e39 commit 3054627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh/docs/concepts/workloads/controllers/replicaset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ When using the REST API or the `client-go` library, you must set `propagationPol
250250

251251
```shell
252252
kubectl proxy --port=8080
253-
curl -X DELETE 'localhost:8080/apis/extensions/v1beta1/namespaces/default/replicasets/frontend' \
253+
curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/frontend' \
254254
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \
255255
> -H "Content-Type: application/json"
256256
```
@@ -270,7 +270,7 @@ When using the REST API or the `client-go` library, you must set `propagationPol
270270

271271
```shell
272272
kubectl proxy --port=8080
273-
curl -X DELETE 'localhost:8080/apis/extensions/v1beta1/namespaces/default/replicasets/frontend' \
273+
curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/frontend' \
274274
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Orphan"}' \
275275
> -H "Content-Type: application/json"
276276
```

0 commit comments

Comments
 (0)