mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #8437 from caesarxuchao/kubectl_run-container-doc
update the docs for kubectl-run-container to v1beta3
This commit is contained in:
commit
fadc76422a
@ -24,8 +24,8 @@ $ kubectl run-container nginx --image=nginx --replicas=5
|
|||||||
// Dry run. Print the corresponding API objects without creating them.
|
// Dry run. Print the corresponding API objects without creating them.
|
||||||
$ kubectl run-container nginx --image=nginx --dry-run
|
$ 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.
|
// 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": "v1beta1", "desiredState": { ... } }'
|
$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta3", "spec": { ... } }'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
@ -78,6 +78,6 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
|
|||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [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
|
||||||
|
|
||||||
[]()
|
[]()
|
||||||
|
@ -184,8 +184,8 @@ $ kubectl run\-container nginx \-\-image=nginx \-\-replicas=5
|
|||||||
// Dry run. Print the corresponding API objects without creating them.
|
// Dry run. Print the corresponding API objects without creating them.
|
||||||
$ kubectl run\-container nginx \-\-image=nginx \-\-dry\-run
|
$ 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.
|
// 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": "v1beta1", "desiredState": \{ ... \} \}'
|
$ kubectl run\-container nginx \-\-image=nginx \-\-overrides='\{ "apiVersion": "v1beta3", "spec": \{ ... \} \}'
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
@ -38,8 +38,8 @@ $ kubectl run-container nginx --image=nginx --replicas=5
|
|||||||
// Dry run. Print the corresponding API objects without creating them.
|
// Dry run. Print the corresponding API objects without creating them.
|
||||||
$ kubectl run-container nginx --image=nginx --dry-run
|
$ 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.
|
// 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": "v1beta1", "desiredState": { ... } }'`
|
$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta3", "spec": { ... } }'`
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewCmdRunContainer(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
func NewCmdRunContainer(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||||
|
Loading…
Reference in New Issue
Block a user