Use bash comments in kubectl examples
Comments in kubectl examples should use bash comments, not Go comments. So, replaces // by # for example strings.
This commit is contained in:
@@ -53,16 +53,16 @@ kubectl replace -f FILENAME
|
||||
### Examples
|
||||
|
||||
```
|
||||
// Replace a pod using the data in pod.json.
|
||||
# Replace a pod using the data in pod.json.
|
||||
$ kubectl replace -f ./pod.json
|
||||
|
||||
// Replace a pod based on the JSON passed into stdin.
|
||||
# Replace a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl replace -f -
|
||||
|
||||
// Update a single-container pod's image version (tag) to v4
|
||||
# Update a single-container pod's image version (tag) to v4
|
||||
kubectl get pod mypod -o yaml | sed 's/\(image: myimage\):.*$/\1:v4/' | kubectl replace -f -
|
||||
|
||||
// Force replace, delete and then re-create the resource
|
||||
# Force replace, delete and then re-create the resource
|
||||
kubectl replace --force -f ./pod.json
|
||||
```
|
||||
|
||||
@@ -111,7 +111,7 @@ kubectl replace --force -f ./pod.json
|
||||
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-08-10 16:02:35.925298963 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-08-12 16:38:35.550406842 +0000 UTC
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user