首页 > 解决方案 > ingress-nginx k8 设置配置 controller.customPorts

问题描述

根据:https ://docs.nginx.com/nginx-ingress-controller/installation/installation-with-helm/

controller.customPorts我正在尝试使用自定义端口安装 ingress-nginx,但是当我传入参数时它不会公开这些端口。我想我没有以正确的格式传递它。文件说

A list of custom ports to expose on the NGINX ingress controller pod. Follows the conventional Kubernetes yaml syntax for container ports.

谁能向我解释这种格式应该是什么?

标签: kubernetesnginx-ingress

解决方案


假设它们的意思是 Pod 定义中显示的内容:

- port: 1234
  name: alan

推荐阅读