mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-06-08 09:52:11 +08:00
Update kubernetes
This commit is contained in:
parent
944cb0dfd1
commit
2921a406d6
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
主节点上需要提供如下的管理服务:
|
主节点上需要提供如下的管理服务:
|
||||||
|
|
||||||
* `apiserver` 是整个系统的对外接口,提供一套 RESTful 的 [Kubernetes API](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/api.md),供客户端和其它组件调用;
|
* `apiserver` 是整个系统的对外接口,提供一套 RESTful 的 [Kubernetes API](https://github.com/kubernetes/kubernetes/tree/master/docs/api-reference),供客户端和其它组件调用;
|
||||||
* `scheduler` 负责对资源进行调度,分配某个 pod 到某个节点上。是 pluggable 的,意味着很容易选择其它实现方式;
|
* `scheduler` 负责对资源进行调度,分配某个 pod 到某个节点上。是 pluggable 的,意味着很容易选择其它实现方式;
|
||||||
* `controller-manager` 负责管理控制器,包括 endpoint-controller(刷新服务和 pod 的关联信息)和 replication-controller(维护某个 pod 的复制为配置的数值)。
|
* `controller-manager` 负责管理控制器,包括 endpoint-controller(刷新服务和 pod 的关联信息)和 replication-controller(维护某个 pod 的复制为配置的数值)。
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# kubectl 使用
|
# kubectl 使用
|
||||||
[kubectl](https://github.com/GoogleCloudPlatform/kubernetes) 是 Kubernetes 自带的客户端,可以用它来直接操作 Kubernetes。
|
[kubectl](https://github.com/kubernetes/kubernetes) 是 Kubernetes 自带的客户端,可以用它来直接操作 Kubernetes。
|
||||||
|
|
||||||
使用格式有两种:
|
使用格式有两种:
|
||||||
```bash
|
```bash
|
||||||
@ -8,44 +8,73 @@ kubectl [command]
|
|||||||
```
|
```
|
||||||
|
|
||||||
## get
|
## get
|
||||||
Display one or many resources
|
|
||||||
|
显示一个或多个资源
|
||||||
|
|
||||||
## describe
|
## describe
|
||||||
Show details of a specific resource
|
|
||||||
|
显示资源详情
|
||||||
|
|
||||||
## create
|
## create
|
||||||
Create a resource by filename or stdin
|
|
||||||
|
从文件或标准输入创建资源
|
||||||
|
|
||||||
## update
|
## update
|
||||||
Update a resource by filename or stdin.
|
|
||||||
|
从文件或标准输入更新资源
|
||||||
|
|
||||||
## delete
|
## delete
|
||||||
Delete a resource by filename, stdin, resource and ID, or by resources and label selector.
|
|
||||||
## namespace
|
通过文件名、标准输入、资源名或者 label selector 删除资源
|
||||||
SUPERCEDED: Set and view the current Kubernetes namespace
|
|
||||||
## log
|
## log
|
||||||
Print the logs for a container in a pod.
|
|
||||||
|
输出 pod 中一个容器的日志。
|
||||||
|
|
||||||
## rolling-update
|
## rolling-update
|
||||||
Perform a rolling update of the given ReplicationController.
|
|
||||||
## resize
|
对指定的 replication controller 执行滚动升级
|
||||||
Set a new size for a Replication Controller.
|
|
||||||
## exec
|
## exec
|
||||||
Execute a command in a container.
|
|
||||||
|
在容器内部执行命令
|
||||||
|
|
||||||
## port-forward
|
## port-forward
|
||||||
Forward one or more local ports to a pod.
|
|
||||||
|
将本地端口转发到Pod
|
||||||
|
|
||||||
## proxy
|
## proxy
|
||||||
Run a proxy to the Kubernetes API server
|
|
||||||
## run-container
|
为 Kubernetes API server 启动代理服务器
|
||||||
Run a particular image on the cluster.
|
|
||||||
## stop
|
## run
|
||||||
Gracefully shut down a resource by id or filename.
|
|
||||||
|
在集群中使用指定镜像启动容器
|
||||||
|
|
||||||
## expose
|
## expose
|
||||||
Take a replicated application and expose it as Kubernetes Service
|
|
||||||
|
将 replication controller service 或 pod 暴露为新的 kubernetes service
|
||||||
|
|
||||||
## label
|
## label
|
||||||
Update the labels on a resource
|
|
||||||
|
更新资源的 label
|
||||||
|
|
||||||
## config
|
## config
|
||||||
config modifies kubeconfig files
|
|
||||||
|
修改 kubernetes 配置文件
|
||||||
|
|
||||||
## cluster-info
|
## cluster-info
|
||||||
Display cluster info
|
|
||||||
|
显示集群信息
|
||||||
|
|
||||||
## api-versions
|
## api-versions
|
||||||
Print available API versions.
|
|
||||||
|
以 "组/版本" 的格式输出服务端支持的 API 版本
|
||||||
|
|
||||||
## version
|
## version
|
||||||
Print the client and server version information.
|
|
||||||
|
输出服务端和客户端的版本信息
|
||||||
|
|
||||||
## help
|
## help
|
||||||
Help about any command
|
|
||||||
|
显示各个命令的帮助信息
|
||||||
|
Loading…
x
Reference in New Issue
Block a user