K8S在华为全球IT系统中的实践
2020-02-27 202浏览
- 1.Kubernetes IT
- 2.IT MWC( ) ( ) 45000 01 02 21000 20000 03 – DC – – VM 6000 300 500 2013 3000 2000 2014 2015 2015 2016 04 /
- 3.CCE IT IT SCM ERP CRM MES App I/P/C VM PaaS (IaaS PaaS CaaS) DC ( kuberentes CaaS docker DC DC DC DC ) IaaS PaaS
- 4.CCE IT TIME 2015 • • 3-4 IT SOA SCALE 2k+ VM 8k+ CASES • Kubernetes • /
- 5.Kubernetes Kubernetes Cluster Kubernetes Master API Server Container Replication Controller Pod Replication Controller (ReplicaSet) Service Container Container Container Container Pod Pod Pod Pod Label Node kubelet Kube-proxy docker kubelet Node Kube-proxy Node =Labels =Service docker Kubelet Kubernetes Master Agent
- 6.Kubernetes • • k8s • 1k 2k 2k k8s 5k • 3w 1 2 3 10w VM / 6 1:2 1 4~5 1:3 1.3
- 7.list-watch KubeCtl / KubeUI / Rest API Ubernetes Api server ETCD Ubernetes API Server API 3rd Auth Ubernetes Controller Manager Ubernetes Scheduler Service Controller Kubernetes Master Cluster Controller Ubernetes Scheduler Kubernetes Master Cluster controller Node Node Node Node Node Node Node Node Node Node Node Node Flannel/OVS Flannel/OVS Service controller
- 8.Kubernetes list-watch • watch • kubectl • list & watch node • watch set list controller-manager 4. ReplicaSet Created Pod scheduler 0. Watch ReplicaSet 1. ReplicaSet • watch Pod 0. watch Pod (destNode=“”) 5. kubelet 9. Pod Pod 8. Pod Created node 0. watch Pod (destNode =“myNode”) 12. Pod Bound (Updated) API-server 2. ReplicaSet 3. ReplicaSet Created 6. Pod 7. Pod Created ETCD 10. Pod 11. Pod Bound (Updated)
- 9.1 KubeCtl 4 RSIns:5'>Ins:5