mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
- 12.3: daemon.json has no top-level cgroup-driver key; use exec-opts native.cgroupdriver (values cgroupfs/systemd) per official dockerd reference - 12.2: USER namespace is not enabled by default; requires userns-remap (aligns with 18.1) - 14.1: cgroup v1 deprecation and kubelet default-fail happen in v1.35, not v1.36 (per kubernetes.io cgroups doc) - 15_etcd: maintenance window updated after etcd v3.7.0 release (2026-07-08) to 3.6/3.7 - 3.9.6: fix dangling sentence order in registry migration note - tools: add 'from __future__ import annotations' so PEP 604 annotations run on Python 3.9 (fixes npm test)
第十四章 部署 Kubernetes
目前,Kubernetes 支持在多种环境下使用,包括本地主机 (Ubuntu、Debian、CentOS、Fedora 等)、云服务 (腾讯云 TKE、阿里云 ACK、百度云等)。
你可以使用以下几种方式部署 Kubernetes,接下来的小节会对各种方式进行详细介绍。
- 使用 kubeadm 部署 (CRI 使用 containerd)
- Kubernetes 也支持 CRI-O 等符合 CRI 的运行时;本文以 containerd 为主线。
- 使用 kubeadm 部署 (使用 Docker)
- 在 Docker Desktop 使用
- Kind - Kubernetes IN Docker
- K3s - 轻量级 Kubernetes
- 一步步部署 Kubernetes 集群
- 可视化管理界面:Headlamp 与历史 Dashboard
- Kubernetes 命令行 kubectl
除了上述方式,企业生产环境中还有两个常见的部署工具值得关注: