Files
nexus/wiki/concepts/Kubernetes.md

44 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Kubernetes"
type: concept
tags: [容器编排, 云原生, 分布式系统]
sources: [ctp-topic-70-eks-deployment-using-iac]
last_updated: 2026-04-24
---
# Kubernetes
## Overview
KubernetesK8s是 Google 开源的容器编排平台,用于分布式系统的弹性运行。提供自动化部署、扩缩容、负载均衡、滚动更新和回滚等核心能力。
## Key Features
- **自动化部署与回滚**:根据声明式配置自动管理应用版本
- **服务发现与负载均衡**:内置 DNS 和负载均衡机制
- **自愈能力**:自动重启失败的容器,替换不健康的节点
- **水平扩缩容**:根据 CPU/内存指标自动调整 Pod 数量
- **存储编排**支持多种存储后端AWS EBS, NFS, Ceph 等)
- **密钥与配置管理**:管理敏感信息和配置,无需重建镜像
## Architecture
- **Control Plane**:主节点,包含 API Server、Scheduler、Controller Manager、etcd
- **Worker Nodes**:工作节点,运行 Pod包含 kubelet、kube-proxy、Container Runtime
## Key Concepts
- **Pod**:最小部署单元,一个 Pod 可包含一个或多个容器
- **Deployment**:声明式更新,管理 Pod 副本数和滚动更新策略
- **Service**:稳定的网络访问入口,通过标签选择器路由流量
- **Ingress**:管理 HTTP/HTTPS 路由,实现七层负载均衡
- **ConfigMap/Secret**:存储配置和敏感数据
- **Namespace**:资源隔离和访问控制
## Related Concepts
- [[Amazon EKS]]AWS 托管的 Kubernetes 服务
- [[Cluster Autoscaler]]Kubernetes 自动扩缩容组件
- [[Infrastructure as Code]]:用于声明式管理 Kubernetes 资源
- [[Cloud-Native]]:云原生应用的核心理念
- [[Container容器]]Pod 的基础运行时
## Related Entities
- [[Google]]Kubernetes 的创始公司2015 年捐给 CNCF
- [[CNCF]]:托管 Kubernetes 项目的开源基金会