add new chinese translations
This commit is contained in:
16
pages.zh/common/kubectl-replace.md
Normal file
16
pages.zh/common/kubectl-replace.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# kubectl 替换
|
||||
|
||||
> 通过文件或 `stdin` 替换资源。
|
||||
> 更多信息: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#replace>。
|
||||
|
||||
- 使用资源定义文件替换资源:
|
||||
|
||||
`kubectl replace -f {{path/to/file.yml}}`
|
||||
|
||||
- 使用传递到 `stdin` 的输入替换资源:
|
||||
|
||||
`kubectl replace -f -`
|
||||
|
||||
- 强制替换,先删除再重新创建资源:
|
||||
|
||||
`kubectl replace --force -f {{path/to/file.yml}}`
|
Reference in New Issue
Block a user