<p>Have the problem with my HAProxy Ingress on Kubernetes. It works well but stopped to implement any ingress changes.
I have tried to restart the pod with ingress but receive the next error. The replace of via default configuration is the same result.
What can be wrong? Maybe somehow force replace with all details ingress?</p>

<p>Log trace :</p>

<pre><code>&gt; 2020/05/05 12:36:01 Running on Kubernetes version: v1.16.6 linux/amd64
&gt; [NOTICE] 125/123601 (22) : New worker #1 (23) forked E0505
&gt; 12:36:02.004135       8 runtime.go:73] Observed a panic: "invalid
&gt; memory address or nil pointer dereference" (runtime error: invalid
&gt; memory address or nil pointer dereference) goroutine 31 [running]:
&gt; k8s.io/apimachinery/pkg/util/runtime.logPanic(0x125db80, 0x1e600b0)
&gt;   /go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719/pkg/util/runtime/runtime.go:69
&gt; +0x7b k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)     /go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719/pkg/util/runtime/runtime.go:51
&gt; +0x82 panic(0x125db80, 0x1e600b0)     /usr/local/go/src/runtime/panic.go:969 +0x166
&gt; github.com/haproxytech/kubernetes-ingress/controller.ConvertIngressRules(0xc0005f6f00,
&gt; 0x2, 0x2, 0x0)    /src/controller/types.go:152 +0x302
&gt; github.com/haproxytech/kubernetes-ingress/controller.(*K8s).EventsIngresses.func1(0x13a62a0,
&gt; 0xc0000ec450)     /src/controller/kubernetes.go:275 +0xc8
&gt; k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnAdd(...)
&gt;   /go/pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/controller.go:195
&gt; k8s.io/client-go/tools/cache.newInformer.func1(0x1272920,
&gt; 0xc0003b8060, 0x1, 0xc0003b8060)
&gt;   /go/pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/controller.go:367
&gt; +0x18a k8s.io/client-go/tools/cache.(*DeltaFIFO).Pop(0xc000276630, 0xc0003985d0, 0x0, 0x0, 0x0, 0x0)
&gt;   /go/pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/delta_fifo.go:436
&gt; +0x235 k8s.io/client-go/tools/cache.(*controller).processLoop(0xc0003f3480)
&gt;   /go/pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/controller.go:150
&gt; +0x40 k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc000017f80)
&gt;   /go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719/pkg/util/wait/wait.go:152
&gt; +0x5f k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000017f80, 0x3b9aca00, 0x0, 0xc0004ff001, 0xc00007e0c0)
&gt;   /go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719/pkg/util/wait/wait.go:153
&gt; +0xf8 k8s.io/apimachinery/pkg/util/wait.Until(...)    /go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719/pkg/util/wait/wait.go:88
&gt; k8s.io/client-go/tools/cache.(*controller).Run(0xc0003f3480,
&gt; 0xc00007e0c0)
&gt;   /go/pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/controller.go:124
&gt; +0x2c1 created by github.com/haproxytech/kubernetes-ingress/controller.(*K8s).EventsIngresses
&gt;   /src/controller/kubernetes.go:334 +0x291 2020/05/05 12:36:07
&gt; Confiugring default_backend ingress-default-backend from ingress
&gt; DefaultService 2020/05/05 12:36:07 HAProxy reloaded
</code></pre>

<p>Usually this error occurs when there is a mismatch in versions between kubelet and kube-apiserver. You need to make sure that kublet version is = or &lt; kube-apiserver version. If not, you'll need to perform an upgrade to make it work. </p>
