Add the section of kubectl, to be filled

pull/62/head
Baohua Yang 2015-06-08 10:32:13 +08:00
parent 03b1d1ffc0
commit 0e87b70fbf
2 changed files with 52 additions and 0 deletions

View File

@ -103,6 +103,7 @@
* [简介](kubernetes/intro.md)
* [快速上手](kubernetes/quickstart.md)
* [架构设计](kubernetes/design.md)
* [kubectl 使用](kubernetes/kubectl.md)
* [附录一:命令查询](appendix_command/README.md)
* [附录二:常见仓库介绍](appendix_repo/README.md)
* [Ubuntu](appendix_repo/ubuntu.md)

51
kubernetes/kubectl.md Normal file
View File

@ -0,0 +1,51 @@
# kubectl 使用
[kubectl](https://github.com/GoogleCloudPlatform/kubernetes) 是 Kubernetes 自带的客户端,可以用它来直接操作 Kubernetes。
使用格式有两种:
```sh
kubectl [flags]
kubectl [command]
```
## get
Display one or many resources
## describe
Show details of a specific resource
## create
Create a resource by filename or stdin
## update
Update a resource by filename or stdin.
## delete
Delete a resource by filename, stdin, resource and ID, or by resources and label selector.
## namespace
SUPERCEDED: Set and view the current Kubernetes namespace
## log
Print the logs for a container in a pod.
## rolling-update
Perform a rolling update of the given ReplicationController.
## resize
Set a new size for a Replication Controller.
## exec
Execute a command in a container.
## port-forward
Forward one or more local ports to a pod.
## proxy
Run a proxy to the Kubernetes API server
## run-container
Run a particular image on the cluster.
## stop
Gracefully shut down a resource by id or filename.
## expose
Take a replicated application and expose it as Kubernetes Service
## label
Update the labels on a resource
## config
config modifies kubeconfig files
## cluster-info
Display cluster info
## api-versions
Print available API versions.
## version
Print the client and server version information.
## help
Help about any command