惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
博客园_首页
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
博客园 - 司徒正美
有赞技术团队
有赞技术团队
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog

陈少文的网站

巨变与机遇的未来十年 Kubernetes 平台管理软件压力测试方案 使用镜像部署 Hexo 静态页面 终于等到你 - GitHub 镜像仓库服务(ghcr.io) 一起来学 Go --(6)Interface 一起来学 Go --(5)Goroutine 和 Channel 什么是函数式编程 如何在 Kubernetes 集群集成 Kata 柯里化与偏函数 使用 PyGithub 自动创建 Label 软件产品是团队能力的输出 Helm 2 、Helm 3 比较 IoT 变现 Kubernetes 中的 DNS 服务 国内的 Helm 镜像源 Harbor 使用自签证书支持 Https 访问 DevOps 工具链之 Prow 如何使用 kfctl 安装 Kubeflow VS Code 无法下载 Go 插件的工具包 工程师更应具有服务精神 你不知道的 Docker 使用技巧 使用 Docker 运行 Tensorflow 论中国 什么是左移 如何清空 Git 仓库全部历史记录 一禅小和尚 有风吹过厨房 时间的玫瑰 如何在 CentOS 安装 GPU 驱动 开发 Tips(19)
Kubernetes 基础环境要求
微信公众号 · 2025-09-04 · via 陈少文的网站

1. 基础包

Kubernetes 版本 ≥ 1.18
socat必须安装
conntrack必须安装
ebtables可选,但推荐安装
ipset可选,但推荐安装
ipvsadm可选,但推荐安装
1
apt-get -y install socat conntrack ebtables ipset ipvsadm

2. 端口要求

2.1 基础节点服务

ServiceProtocolActionStart PortEnd PortComment
sshTCPallow2222节点远程管理
dockerTCPallow23752376Docker 远程通信
etcdTCPallow23792380etcd 集群通信

2.2 Master/Control Plane 组件

ServiceProtocolActionStart PortEnd PortComment
apiserverTCPallow64436443K8s API Server (HTTPS)
apiserver-insecureTCPallow80808080K8s API Server (HTTP, 已废弃)
etcd-clientTCPallow23792379etcd 客户端通信
etcd-peerTCPallow23802380etcd 节点间通信
schedulerTCPallow1025910259kube-scheduler
controller-managerTCPallow1025710257kube-controller-manager
kubeletTCPallow1025010250kubelet API
kubelet-readonlyTCPallow1025510255kubelet 只读端口 (已废弃)
kube-proxy-metricsTCPallow1024910249kube-proxy 指标

2.3 Worker Node 组件

ServiceProtocolActionStart PortEnd PortComment
kubeletTCPallow1025010250kubelet API
kubelet-readonlyTCPallow1025510255kubelet 只读端口 (已废弃)
kube-proxyTCPallow1025610256kube-proxy 健康检查
nodeportTCPallow3000032767NodePort 服务范围

2.4 网络组件 (CNI)

  • Calico
ServiceProtocolActionStart PortEnd PortComment
calico-typhaTCPallow54735473Calico Typha
calico-nodeTCPallow90999100Calico 监控端口
bgpTCPallow179179Calico BGP
ipipIPENCAP/IPIPallowCalico IP-in-IP 封装模式
wireguardUDPallow5182051821Calico WireGuard (可选)
  • Flannel
ServiceProtocolActionStart PortEnd PortComment
flannel-vxlanUDPallow84728472Flannel VXLAN 模式
flannel-host-gwTCPallow82858285Flannel host-gw 模式
  • Cilium
ServiceProtocolActionStart PortEnd PortComment
cilium-agentTCPallow98769876Cilium Agent
cilium-operatorTCPallow92349234Cilium Operator
cilium-hubbleTCPallow42444244Hubble gRPC
  • Weave Net
ServiceProtocolActionStart PortEnd PortComment
weaveTCPallow67836783Weave 网络通信
weaveUDPallow67836784Weave 网络通信

2.5 存储相关

  • NFS
ServiceProtocolActionStart PortEnd PortComment
rpcbindTCPallow111111NFS RPC 绑定
rpcbindUDPallow111111NFS RPC 绑定
nfsTCPallow20492049NFS 服务
nfsUDPallow20492049NFS 服务
  • iSCSI
ServiceProtocolActionStart PortEnd PortComment
iscsiTCPallow32603260iSCSI 目标端口

2.6 服务发现和 DNS

ServiceProtocolActionStart PortEnd PortComment
corednsTCPallow5353CoreDNS 解析
corednsUDPallow5353CoreDNS 解析
coredns-metricsTCPallow91539153CoreDNS 指标

2.7 监控和日志

  • Prometheus
ServiceProtocolActionStart PortEnd PortComment
prometheusTCPallow90909090Prometheus 服务器
node-exporterTCPallow91009100Node Exporter
kube-state-metricsTCPallow80808081kube-state-metrics
  • Grafana
ServiceProtocolActionStart PortEnd PortComment
grafanaTCPallow30003000Grafana Web UI
  • ELK Stack
ServiceProtocolActionStart PortEnd PortComment
elasticsearchTCPallow92009300Elasticsearch
kibanaTCPallow56015601Kibana Web UI
logstashTCPallow50445044Logstash Beats
  • Jaeger
ServiceProtocolActionStart PortEnd PortComment
jaeger-queryTCPallow1668616686Jaeger UI
jaeger-collectorTCPallow1426814268Jaeger HTTP
jaeger-agentUDPallow68316832Jaeger UDP

2.8 Ingress

  • NGINX Ingress
ServiceProtocolActionStart PortEnd PortComment
nginx-httpTCPallow8080HTTP 流量
nginx-httpsTCPallow443443HTTPS 流量
nginx-metricsTCPallow1025410254NGINX 指标
  • Traefik
ServiceProtocolActionStart PortEnd PortComment
traefik-webTCPallow80808080Traefik Dashboard
traefik-httpTCPallow8080HTTP 流量
traefik-httpsTCPallow443443HTTPS 流量

2.9 Service Mesh

  • Istio
ServiceProtocolActionStart PortEnd PortComment
istiodTCPallow1501015017Istiod 控制平面
envoy-adminTCPallow1500015000Envoy 管理端口
envoy-outboundTCPallow1500115001Envoy 出站流量
envoy-inboundTCPallow1500615006Envoy 入站流量
istio-proxyTCPallow1502015020Istio Proxy 状态

2.10 负载均衡器

  • MetalLB
ServiceProtocolActionStart PortEnd PortComment
metallb-speakerTCPallow74727472MetalLB Speaker
metallb-webhookTCPallow94439443MetalLB Webhook