Kubernetes入口HAProxy没有检测到的变化

问题描述 投票:0回答:1

我在Kubernetes上的HAProxy入口出现问题。它运作良好,但已停止执行任何入口更改。我尝试使用入口重新启动Pod,但收到下一个错误。通过默认配置替换是相同的结果。有什么事吗也许以某种方式强制用所有细节入口代替?

日志跟踪:

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

通常,当kubelet和kube-apiserver的版本不匹配时,会发生此错误。您需要确保kublet版本是=或

© www.soinside.com 2019 - 2024. All rights reserved.