hardkubectl
Replace an existing Kubernetes resource with the definition in a file
command
kubectl replace -f FILEalso accepted
kubectl replace -fcommand
kubectl replace -f FILEalso accepted
kubectl replace -fPart of the Kubernetes CLI (kubectl) — Resource Operations category.
| Flag | Purpose |
|---|---|
-f | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →