【问题标题】:update nginx ingress from deployment to daemonset将 nginx 入口从部署更新到 daemonset
【发布时间】:2022-01-05 08:45:25
【问题描述】:

我使用 helm 安装了 nginx-ingress。之后我注意到默认的controller.kinddeployment 而不是daemonset,正如我在official doc 中找到的那样。

那么如何在不从一开始就重新安装的情况下将controller.kinddeployment 更新为daemonset

helm install nginx-ingress nginx-stable/nginx-ingress --set controller.service.type=NodePort --set controller.service.httpPort.nodePort=30000 --set controller.service.httpsPort.nodePort=30443

【问题讨论】:

    标签: nginx kubernetes kubernetes-ingress nginx-ingress daemonset


    【解决方案1】:

    这可能对您有帮助(--set controller.kind=daemonset)。

    helm install nginx-ingress nginx-stable/nginx-ingress --set controller.service.type=NodePort --set controller.service.httpPort.nodePort=30000 --set controller.service.httpsPort.nodePort=30443 --set controller.kind=daemonset
    

    【讨论】:

    • 我认为这会重新安装 nginx-ingress,对吧?我们有没有轻量级的方式,我的意思是不需要重新安装。
    • 如果您不想重新安装,可以使用helm upgrade 而不是helm install
    【解决方案2】:

    今天遇到这个问题; vector 的建议对我不起作用,但这只是需要进行的小调整:

    helm install nginx-ingress nginx-stable/nginx-ingress --set controller.service.type=NodePort --set controller.service.httpPort.nodePort=30000 --set controller.service.httpsPort.nodePort=30443 --set controller.kind=DaemonSet

    (DaemonSet 必须大写)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-06
      • 1970-01-01
      • 2018-11-28
      • 1970-01-01
      • 1970-01-01
      • 2018-06-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多