简体   繁体   English

nginx 从稳定仓库升级到 ingress-nginx 仓库后入口资源不工作

[英]nginx ingress resources not working after upgrading to ingress-nginx repo from stable repo

I have upgraded my nginx controller from old stable repository to new ingress-nginx repository version 3.3.0.我已将我的 nginx controller 从旧的稳定存储库升级到新的 ingress-nginx 存储库版本 3.3.0。 Upgrade was succeeded without an issue.升级成功,没有问题。

My ingress resources stopped working after the upgrade and after annotating kube.netes.io/ingress.class: nginx to the existing resources, I could see the below message in the nginx pods.升级后我的入口资源停止工作,并且在将kube.netes.io/ingress.class: nginx注释到现有资源后,我可以在 nginx pod 中看到以下消息。 This is the output for my kiali ingress resources.这是我的 kiali ingress 资源的 output。

I1008 10:53:00.046817       9 event.go:278] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"istio-system", Name:"istio-kiali", UID:"058a7b68-191a-4cdf-a0dd-023faffbb6a5", APIVersion:"networking.k8s.io/v1beta1", ResourceVersion:"26912", FieldPath:""}): type: 'Normal' reason: 'UPDATE' Ingress istio-system/istio-kiali

Still I'm not able to access it.我仍然无法访问它。 Does anyone have any idea about the issue?有人对这个问题有任何想法吗?

Your valuable thoughts and suggestions would be appreciated.您的宝贵想法和建议将不胜感激。

I'm using the upstream nginx ingress and use helm controller to install it.我正在使用上游 nginx 入口并使用 helm controller 来安装它。 BTW, I have carefully gone through the values and overridden the values as below using the helm release.顺便说一句,我已经仔细检查了这些值并使用 helm 版本覆盖了以下值。 Now, it is working fine.现在,它工作正常。 All of my ingresses came online to serve traffic even without the annotation.即使没有注释,我所有的入口都联机为流量提供服务。

No errors appeared in the logs.日志中没有出现错误。 I suppose my previous values may caused the issue.我想我以前的价值观可能导致了这个问题。 I'm sharing the updated and fixed values as below, I hope it will help someone to who got the similar issue.我正在如下共享更新值和固定值,希望它能帮助遇到类似问题的人。

controller:
      kind: DaemonSet
      hostNetwork: true
      hostPort:
        enabled: true
        ports:
          http: 80
          https: 443
      dnsPolicy: ClusterFirstWithHostNet
      nodeSelector:
        role: minion
      extraArgs:
        "default-server-port": 8182
      service:
        enabled: false
      publishService:
        enabled: false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM