创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:物理机,Centos7.9
Kubernetes版本信息
1.21.5
容器运行时
docker
KubeSphere版本信息
例如:3.2.1。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
问题是什么
{“level”:“info”,“ts”:1661924330.1532047,“logger”:“controller-runtime.controller”,“msg”:“Starting EventSource”,“controller”:“LBController”,“source”:“kind source: /, Kind=”}
{“level”:“info”,“ts”:1661924330.1533225,“logger”:“controller-runtime.controller”,“msg”:“Starting workers”,“controller”:“bgppeer”,“worker count”:1}
E0831 05:38:50.153880 1 runtime.go:78] Observed a panic: “invalid memory address or nil pointer dereference” (runtime error: invalid memory address or nil pointer dereference)
goroutine 748 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0×18e91e0, 0×288fca0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/runtime/runtime.go:74 +0xa6
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0×0, 0×0, 0×0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/runtime/runtime.go:48 +0×89
panic(0×18e91e0, 0×288fca0)
/usr/local/go/src/runtime/panic.go:969 +0×1b9
github.com/openelb/openelb/pkg/speaker/bgp.(*Bgp).HandleBgpPeer(0xc000e90060, 0xc001698300, 0×1b63501, 0×23, 0×1)
/go/src/github.com/openelb/openelb/pkg/speaker/bgp/peers.go:113 +0×378
github.com/openelb/openelb/pkg/controllers/bgp.BgpPeerReconciler.Reconcile(0×1d9a880, 0xc000c97f20, 0xc000e90060, 0×1d81000, 0xc000ca2b40, 0×0, 0×0, 0xc00262a1e0, 0×10, 0×16fa82ce59901f, …)
/go/src/github.com/openelb/openelb/pkg/controllers/bgp/bgppeer_controller.go:103 +0×21a
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003a4540, 0×19601a0, 0xc001f10060, 0×1ab3100)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:256 +0×166
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003a4540, 0×203000)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232 +0xb0
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker(0xc0003a4540)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211 +0×2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000522330)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:155 +0×5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000522330, 0×1d44ec0, 0xc0004961e0, 0xc001588001, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:156 +0xad
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000522330, 0×3b9aca00, 0×0, 0×1, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:133 +0xe5
k8s.io/apimachinery/pkg/util/wait.Until(0xc000522330, 0×3b9aca00, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:90 +0×4d
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:193 +0×32d
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0×1 addr=0×28 pc=0×1708e78]
goroutine 748 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0×0, 0×0, 0×0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/runtime/runtime.go:55 +0×10c
panic(0×18e91e0, 0×288fca0)
/usr/local/go/src/runtime/panic.go:969 +0×1b9
github.com/openelb/openelb/pkg/speaker/bgp.(*Bgp).HandleBgpPeer(0xc000e90060, 0xc001698300, 0×1b63501, 0×23, 0×1)
/go/src/github.com/openelb/openelb/pkg/speaker/bgp/peers.go:113 +0×378
github.com/openelb/openelb/pkg/controllers/bgp.BgpPeerReconciler.Reconcile(0×1d9a880, 0xc000c97f20, 0xc000e90060, 0×1d81000, 0xc000ca2b40, 0×0, 0×0, 0xc00262a1e0, 0×10, 0×16fa82ce59901f, …)
/go/src/github.com/openelb/openelb/pkg/controllers/bgp/bgppeer_controller.go:103 +0×21a
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003a4540, 0×19601a0, 0xc001f10060, 0×1ab3100)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:256 +0×166
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003a4540, 0×203000)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232 +0xb0
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker(0xc0003a4540)
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211 +0×2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000522330)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:155 +0×5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000522330, 0×1d44ec0, 0xc0004961e0, 0xc001588001, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:156 +0xad
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000522330, 0×3b9aca00, 0×0, 0×1, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:133 +0xe5
k8s.io/apimachinery/pkg/util/wait.Until(0xc000522330, 0×3b9aca00, 0xc0006780c0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:90 +0×4d
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:193 +0×32d
。