我在Ingress Controller pod 里面没有找到ingress 的配置
时间: 2023-08-13 07:08:30 浏览: 96
Ingress Controller Pod 中没有直接找到 Ingress 的配置是正常的。这是因为 Ingress Controller 并不直接从 Ingress 资源中读取配置,而是通过 Kubernetes API Server 中的 Ingress 资源来动态地生成配置,并将其应用于反向代理服务(如 Nginx)。因此,Ingress Controller Pod 中的配置是动态生成的,并且不会直接显示在 Pod 中。
您可以通过以下步骤来查看 Ingress Controller Pod 中的配置:
1. 进入 Ingress Controller Pod,可以使用 kubectl exec 命令:
```
kubectl exec -it <ingress-controller-pod-name> -n <ingress-controller-namespace> -- /bin/bash
```
2. 查找 Ingress Controller 的配置文件,通常在 /etc/nginx/nginx.conf 或 /etc/nginx/conf.d/default.conf 中:
```
cat /etc/nginx/nginx.conf
```
3. 查看 Ingress Controller 配置文件中的内容,其中应该包含从 Kubernetes API Server 中读取的 Ingress 配置信息。
在 Ingress Controller Pod 中查看配置可以帮助您了解 Ingress Controller 如何将 Ingress 配置转换为反向代理服务的配置,并了解它们如何处理流量路由。
阅读全文
相关推荐

















