docker_practice/kubernetes/concepts.md

183 lines
9.0 KiB
Go
Raw Normal View History

#
![](./_images/kubernetes_design.jpg)
2017-12-01 16:32:42 +08:00
* `Node` Kubernetes
* `Pod` Pod (volume)
* `pos-states` replication controllers
* Replication Controllers pod
* `services` Kubernetes 访
* `volumes`访
* `labels`
* `accessing_the_api`IP
* web `ux` web Kubernetes
* `cli``kubectl`
##
2017-12-01 16:32:42 +08:00
`Kubernetes` Dockerkubelet
###
#### IP
2017-12-01 16:32:42 +08:00
IP `Kubernetes` `Kubernetes` ID IP IP IP IP IPipv6
####
2017-12-01 16:32:42 +08:00
`Pending``Running``Terminated` Kubernetes Kubernetes `Pending`Kubernetes `Running` `Terminated` `Terminated`
####
2017-12-01 16:32:42 +08:00
`Running` `NodeReachable` `NodeReady``NodeReachable` `NodeReady` kubelet Status Ok HTTP
###
2017-12-01 16:32:42 +08:00
Kubernetes Kubernetes Kubernetes Kubernetes
2017-11-22 11:13:23 +08:00
```json
{
"id": "10.1.2.3",
"kind": "Minion",
"apiVersion": "v1beta1",
"resources": {
"capacity": {
"cpu": 1000,
"memory": 1073741824
},
},
"labels": {
"name": "my-first-k8s-node",
},
}
```
2017-12-01 16:32:42 +08:00
Kubernetes ID Kube
###
2017-12-01 16:32:42 +08:00
Kubernetes
*
*
2023-02-24 17:41:22 +08:00
`--node_sync_period` Kubernetes `--machines`使 `kubectl` `--sync_nodes=false`使 api/kubectl
##
2017-12-01 16:32:42 +08:00
Kubernetes 使
2018-12-11 14:30:59 +08:00
使 Docker
###
###
2017-12-01 16:32:42 +08:00
使 IP
###
2020-05-20 01:33:03 +08:00
### 使
2020-05-20 01:33:03 +08:00
*
*
*
*
*
###
* 1.使便
2017-12-01 16:32:42 +08:00
* 2.Kubernetes
2020-05-20 01:33:03 +08:00
* 3.便使退
* 4.
###
2017-12-01 16:32:42 +08:00
`pending``running``succeeded``failed`
#### pending
#### running
#### succeeded
退
#### failed
###
2017-12-01 16:32:42 +08:00
succeeded 退
`failed`
* `running` 1 退
*
*
* `running`
* `succeeded`
* `succeeded`
* `running`1退
*
*
* `running`
* `running`
* `failed`
* `running`21退
*
*
* `running`
* `running`
* `running`
* 2退
*
*
* `running`
* `running`
* `failed`
* `running`
*
*
*
* `running`
* `running`
* `failed`
* `running`
*
*
* `failed`
*
* `running`
*
* `failed`
*
## Replication Controllers
##
##
##
##
## web
##