From 013130f1507a18ead8ff2ce490ed8a899506cc5d Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Mon, 18 May 2015 13:29:24 -0700 Subject: [PATCH] update the docs for kubectl-run-container to v1beta3 --- docs/kubectl_run-container.md | 6 +++--- docs/man/man1/kubectl-run-container.1 | 4 ++-- pkg/kubectl/cmd/run.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/kubectl_run-container.md b/docs/kubectl_run-container.md index 233267821d9..f557f8c21fb 100644 --- a/docs/kubectl_run-container.md +++ b/docs/kubectl_run-container.md @@ -24,8 +24,8 @@ $ kubectl run-container nginx --image=nginx --replicas=5 // Dry run. Print the corresponding API objects without creating them. $ kubectl run-container nginx --image=nginx --dry-run -// Start a single instance of nginx, but overload the desired state with a partial set of values parsed from JSON. -$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }' +// Start a single instance of nginx, but overload the spec of the replication controller with a partial set of values parsed from JSON. +$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta3", "spec": { ... } }' ``` ### Options @@ -78,6 +78,6 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta ### SEE ALSO * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager -###### Auto generated by spf13/cobra at 2015-05-15 00:05:04.552712035 +0000 UTC +###### Auto generated by spf13/cobra at 2015-05-18 20:22:53.529935618 +0000 UTC [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_run-container.md?pixel)]() diff --git a/docs/man/man1/kubectl-run-container.1 b/docs/man/man1/kubectl-run-container.1 index 2d0c0b7e382..11633c2d32f 100644 --- a/docs/man/man1/kubectl-run-container.1 +++ b/docs/man/man1/kubectl-run-container.1 @@ -184,8 +184,8 @@ $ kubectl run\-container nginx \-\-image=nginx \-\-replicas=5 // Dry run. Print the corresponding API objects without creating them. $ kubectl run\-container nginx \-\-image=nginx \-\-dry\-run -// Start a single instance of nginx, but overload the desired state with a partial set of values parsed from JSON. -$ kubectl run\-container nginx \-\-image=nginx \-\-overrides='\{ "apiVersion": "v1beta1", "desiredState": \{ ... \} \}' +// Start a single instance of nginx, but overload the spec of the replication controller with a partial set of values parsed from JSON. +$ kubectl run\-container nginx \-\-image=nginx \-\-overrides='\{ "apiVersion": "v1beta3", "spec": \{ ... \} \}' .fi .RE diff --git a/pkg/kubectl/cmd/run.go b/pkg/kubectl/cmd/run.go index 9ae93d312d7..bc546783366 100644 --- a/pkg/kubectl/cmd/run.go +++ b/pkg/kubectl/cmd/run.go @@ -38,8 +38,8 @@ $ kubectl run-container nginx --image=nginx --replicas=5 // Dry run. Print the corresponding API objects without creating them. $ kubectl run-container nginx --image=nginx --dry-run -// Start a single instance of nginx, but overload the desired state with a partial set of values parsed from JSON. -$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }'` +// Start a single instance of nginx, but overload the spec of the replication controller with a partial set of values parsed from JSON. +$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta3", "spec": { ... } }'` ) func NewCmdRunContainer(f *cmdutil.Factory, out io.Writer) *cobra.Command {