k8s / Kubernetes
选择使用 kubeadm、 kops 或 Kubespray 作为部署方法
- https://guangzhengli.com/courses/kubernetes
- https://www.qikqiak.com/k8s-book/docs/18.YAML%20文件.html
- v1.33
核心组件 Core Components
控制平面组件 Control Plane Components
Manage the overall state of the cluster:
kube-apiserver
The core component server that exposes the Kubernetes HTTP API.
etcd
Consistent and highly-available key value store for all API server data.
kube-scheduler
Looks for Pods not yet bound to a node, and assigns each Pod to a suitable node.
kube-controller-manager
Runs controllers to implement Kubernetes API behavior.
cloud-controller-manager (optional)
Integrates with underlying cloud provider(s).
节点组件 Node Components
Run on every node, maintaining running pods and providing the Kubernetes runtime environment:
kubelet Ensures that Pods are running, including their containers. kube-proxy (optional) Maintains network rules on nodes to implement Services. Container runtime Software responsible for running containers. Read Container Runtimes to learn more.
附加组件 Addons
Addons extend the functionality of Kubernetes. A few important examples include:
DNS For cluster-wide DNS resolution. Web UI (Dashboard) For cluster management via a web interface. Container Resource Monitoring For collecting and storing container metrics. Cluster-level Logging For saving container logs to a central log store.
部署方式
kubeadm
k8s自带的部署方法, 用于少量机器部署,命令式部署.
kops
kops 主要设计用于在指定的云厂商上部署和管理 Kubernetes 集群, 而不是为任意服务器(如本地物理机,Bare-metal)设计的。
Kubespray (目前最流行2025)
- Linux
cluster-api 声明式部署集群(官方主推)
https://github.com/kubernetes-sigs/cluster-api.git