kubectl replace: add page (#11091)

* kubectl replace: add page

* kubectl replace: fix typo

* kubectl replace: fix typo

* kubectl replace: fix typo

* kubectl replace: apply suggestions from code review

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
pull/23/head
Aditya Shrivastav 2023-10-20 17:18:58 +05:30 committed by GitHub
parent 6764587baf
commit dbfb06385e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# kubctl replace
> Replace a resource by file or `stdin`.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#replace>.
- Replace the resource using the resource definition file:
`kubectl replace -f {{path/to/file.yml}}`
- Replace the resource using the input passed into `stdin`:
`kubectl replace -f -`
- Force replace, delete and then re-create the resource:
`kubectl replace --force -f {{path/to/file.yml}}`