參考:html
https://www.yangcs.net/posts/what-happens-when-k8s/api
總而言之,kubectl命令執行的時候,先在本地封裝請求,而後過kube-apiserver驗證控制,而後到etcd讀or寫數據。app
apiserver的啓動與部署:post
http://hardocs.com/d/kubernetes/066-kube-apiserver%20Binary.html.net
etcd的啓動與部署server