diff --git a/docs/kubectl.md b/docs/kubectl.md index 7042f3a00b6..db3f856dee3 100644 --- a/docs/kubectl.md +++ b/docs/kubectl.md @@ -882,6 +882,9 @@ Examples: $ kubectl run-container nginx --image=dockerfile/nginx --dry-run + + $ kubectl run-container nginx --image=dockerfile/nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }' + $ kubectl run-container nginx --image=dockerfile/nginx --dry-run - `, + + + $ kubectl run-container nginx --image=dockerfile/nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }' + is required for run") @@ -84,6 +87,6 @@ Examples: cmd.Flags().IntP("replicas", "r", 1, "Number of replicas to create for this container. Default 1") cmd.Flags().Bool("dry-run", false, "If true, only print the object that would be sent, don't actually do anything") cmd.Flags().StringP("labels", "l", "", "Labels to apply to the pod(s) created by this call to run.") - cmd.Flags().String("overrides", "", "An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object") + cmd.Flags().String("overrides", "", "An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object. Requires that the object supply a valid apiVersion field.") return cmd }