# 错误：监听 tcp :80：绑定：地址已在使用中

- **ID:** `kubernetes/port-conflict-ingress`
- **领域:** kubernetes
- **类别:** runtime_error
- **错误码:** `EADDRINUSE`
- **验证级别:** ai_generated
- **修复率:** 88%

## 根因

端口 80 或 443 已被主机上的另一个进程占用，阻止了入口控制器或 kube-proxy 绑定。

## 解决方案

1. ```
   Identify and stop the process using the port: 'sudo lsof -i :80' then 'sudo kill -9 <PID>' or 'sudo systemctl stop nginx' if it's the default web server.
   ```
2. ```
   Configure the ingress controller to use a different host port via hostPort in the deployment spec, e.g., 'hostPort: 8080'.
   ```

## 无效尝试

- **Delete and recreate the ingress controller pod** — The pod inherits the host network; the port conflict persists on the node regardless of pod lifecycle. (80% 失败率)
- **Change the ingress controller's service type to NodePort** — NodePort still uses host ports; the conflict remains unless the port is freed. (60% 失败率)
