【问题标题】:ingress-nginx k8 settings configuring controller.customPortsingress-nginx k8 设置配置 controller.customPorts
【发布时间】:2021-07-21 09:40:39
【问题描述】:

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

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

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

谁能给我解释一下这种格式应该是什么?

【问题讨论】:

    标签: kubernetes nginx-ingress


    【解决方案1】:

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

    - port: 1234
      name: alan
    

    【讨论】:

    • 如何将其作为--set controller.customPorts 参数传入?
    • helm.sh/docs/intro/using_helm/… 显示各种选项。
    • 这就是我所追求的,非常感谢@coderanger
    猜你喜欢
    • 1970-01-01
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-19
    • 2020-01-09
    • 2019-05-31
    • 2019-12-03
    相关资源
    最近更新 更多