<p>I'm trying to upgrade the Nginx controller on a Kubernetes cluster version v1.16 (v1.16.10) and unfortunately it was not succeeded.</p>
<p>My Nginx setup is configured as a DaemonSet with the helm stable repository, since the new repository as changed to <a href="https://kubernetes.github.io/ingress-nginx" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx</a> I'm trying to use the new repo and trying to upgrade the version to at lease 0.33 which is helm release 2.10.0</p>
<p>Error behavior:</p>
<p>upgrade is half way succeeded and stuck in a place where saying &quot;Pod is not ready: kube-system/nginx-ingress-controller-xxxx&quot; in the helm controller.
At that time there were pods created by the DaemonSet in the nodes and they were going to the &quot;CrashLoopBackOff&quot; state and then &quot;Error&quot; state, logs displayed the below error:</p>
<pre><code>W0928 05:21:50.497500       6 flags.go:249] SSL certificate chain completion is disabled (--enable-ssl-chain-completion=false)
W0928 05:21:50.497572       6 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0928 05:21:50.497777       6 main.go:218] Creating API client for https://172.31.0.1:443
I0928 05:21:50.505692       6 main.go:262] Running in Kubernetes cluster version v1.16 (v1.16.10) - git (clean) commit f3add640dbcd4f3c33a7749f38baaac0b3fe810d - platform linux/amd64
I0928 05:21:50.512138       6 main.go:85] Validated kube-system/nginx-ingress-ingress-nginx-defaultbackend as the default backend.
F0928 05:21:50.517958       6 main.go:91] No service with name kube-system found in namespace nginx-ingress-ingress-nginx-controller: services &quot;nginx-ingress-ingress-nginx-controller&quot; not found
</code></pre>
<p>I can confirm that there were no service running for the Nginx Controller with my current helm release (1.33.1). I'm not sure this service is an essential aspect for this version with the NodePort configuration or I'm missing something here.</p>
<p>Service is set to false in my current config in the DaemonSet</p>
<pre><code>      service:
        enabled: false

</code></pre>
<p>I found that there were few issues in k8s 1.16 and not sure this is also something related to that. Also, I can confirm that the default backend is registerig successfully as few of the issues I found related to that as well and it couldn't be the reason.</p>
<p>Really appreacite your kind and helpful thoughts here. Thanks.</p>

Aruna Fernando
<p>Finally, I was able to figure it out and working perfectly. It was due to the change from chart version 0.32 to 0.33 and it is checking the publish-service flag is defined.</p>
<pre><code>--set controller.publishService.enabled=false
</code></pre>
<p>The above parameter should be explicitly set to avoid this.</p>
<p>Related PR: #<a href="https://github.com/kubernetes/ingress-nginx/pull/5553" rel="nofollow noreferrer">5553</a></p>
<p>working command:</p>
<pre><code>helm install nginx-new ingress-nginx/ingress-nginx --version 3.3.0 --set controller.service.enabled=false --set controller.kind=DaemonSet --set controller.publishService.enabled=false
</code></pre>
