shell command missing fix in docs (#9213)

https://kubernetes.io/docs/concepts/overview/object-management-kubectl/imperative-config/#migrating-from-imperative-commands-to-imperative-object-configuration : kubectl shell command broken fix
by wrapping kubecl-cmd around codeblock.

Added two lines at bottom - Reviewer suggestion
This commit is contained in:
SUNNY
2018-06-25 14:29:02 +05:30
committed by k8s-ci-robot
parent 2efc308783
commit 6eda6dbc4c
@@ -100,14 +100,16 @@ Migrating from imperative commands to imperative object configuration involves
several manual steps.
1. Export the live object to a local object configuration file:
kubectl get <kind>/<name> -o yaml --export > <kind>_<name>.yaml
```sh
kubectl get <kind>/<name> -o yaml --export > <kind>_<name>.yaml
```
1. Manually remove the status field from the object configuration file.
1. For subsequent object management, use `replace` exclusively.
kubectl replace -f <kind>_<name>.yaml
```sh
kubectl replace -f <kind>_<name>.yaml
```
## Defining controller selectors and PodTemplate labels