是否还需要其他的操作,比如重启什么服务?
ks-apiserver 无法启动,求大佬们帮忙看看!
重建一下ks-apiserver的pod
谢谢大哥,可以了,是否解释一下为什么呢?是否以后添加bitnami还是会出现这种情况呢
bitnami源里有脏数据, 一个chart包光有元信息,没有实际内容, 导致出错了
后续 bitnami源把数据修正, 或者ks出一个补丁跳过这种异常数据
suguangnan
可以尝试再添加一下, 我新加bitnami源没有复现, 可能是他某次加了个空包, 然后你们的环境就缓存了这个空包, 后面他又修复删除了
[root@node1 ~]# k logs -f ks-apiserver-5c59bc47c8-zgtt9
W0808 20:45:35.135585 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
W0808 20:45:35.137281 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
W0808 20:45:35.148741 1 cache.go:64] In-memory cache will be used, this may cause data inconsistencies when running with multiple replicas.
I0808 20:45:35.148908 1 interface.go:50] start helm repo informer
I0808 20:45:35.541494 1 apiserver.go:428] Start cache objects
E0808 20:45:39.932750 1 runtime.go:79] Observed a panic: “invalid memory address or nil pointer dereference” (runtime error: invalid memory address or nil pointer dereference)
goroutine 1270 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0×3919e80?, 0×6c18e40})
/workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:75 +0x99
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0×0, 0×0, 0xc000d9a780?})
/workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:49 +0x75
panic({0×3919e80, 0×6c18e40})
/usr/local/go/src/runtime/panic.go:884 +0x212
kubesphere.io/kubesphere/pkg/simple/client/openpitrix/helmrepoindex.HelmVersionWrapper.GetName(…)
/workspace/pkg/simple/client/openpitrix/helmrepoindex/load_package.go:48
kubesphere.io/kubesphere/pkg/utils/reposcache.(*cachedRepos).addRepo(0xc000d9a780, 0xc00324e208, 0×3?)
/workspace/pkg/utils/reposcache/repo_cahes.go:272 +0xbcb
kubesphere.io/kubesphere/pkg/utils/reposcache.(*cachedRepos).AddRepo(0xc000d9a780, 0xc000558720?)
/workspace/pkg/utils/reposcache/repo_cahes.go:194 +0x7c
kubesphere.io/kubesphere/pkg/models/openpitrix.NewOpenpitrixOperator.func1({0×3eebf00?, 0xc00324e208?})
/workspace/pkg/models/openpitrix/interface.go:56 +0x3b
k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnAdd(…)
/workspace/vendor/k8s.io/client-go/tools/cache/controller.go:232
k8s.io/client-go/tools/cache.(*processorListener).run.func1()
/workspace/vendor/k8s.io/client-go/tools/cache/shared_informer.go:911 +0x134
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0×0?)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:157 +0x3e
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc001185738?, {0×476a2a0, 0xc003564390}, 0×1, 0xc000d57140)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:158 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000080028?, 0×3b9aca00, 0×0, 0xc0?, 0xc001185788?)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:135 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(…)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:92
k8s.io/client-go/tools/cache.(*processorListener).run(0xc0010aab80?)
/workspace/vendor/k8s.io/client-go/tools/cache/shared_informer.go:905 +0x6b
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:75 +0x5a
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:73 +0x85
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×0 pc=0×21ea58b]
goroutine 1270 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0×0, 0×0, 0xc000d9a780?})
/workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:56 +0xd7
panic({0×3919e80, 0×6c18e40})
/usr/local/go/src/runtime/panic.go:884 +0x212
kubesphere.io/kubesphere/pkg/simple/client/openpitrix/helmrepoindex.HelmVersionWrapper.GetName(…)
/workspace/pkg/simple/client/openpitrix/helmrepoindex/load_package.go:48
kubesphere.io/kubesphere/pkg/utils/reposcache.(*cachedRepos).addRepo(0xc000d9a780, 0xc00324e208, 0×3?)
/workspace/pkg/utils/reposcache/repo_cahes.go:272 +0xbcb
kubesphere.io/kubesphere/pkg/utils/reposcache.(*cachedRepos).AddRepo(0xc000d9a780, 0xc000558720?)
/workspace/pkg/utils/reposcache/repo_cahes.go:194 +0x7c
kubesphere.io/kubesphere/pkg/models/openpitrix.NewOpenpitrixOperator.func1({0×3eebf00?, 0xc00324e208?})
/workspace/pkg/models/openpitrix/interface.go:56 +0x3b
k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnAdd(…)
/workspace/vendor/k8s.io/client-go/tools/cache/controller.go:232
k8s.io/client-go/tools/cache.(*processorListener).run.func1()
/workspace/vendor/k8s.io/client-go/tools/cache/shared_informer.go:911 +0x134
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0×0?)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:157 +0x3e
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc001185738?, {0×476a2a0, 0xc003564390}, 0×1, 0xc000d57140)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:158 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000080028?, 0×3b9aca00, 0×0, 0xc0?, 0xc001185788?)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:135 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(…)
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:92
k8s.io/client-go/tools/cache.(*processorListener).run(0xc0010aab80?)
/workspace/vendor/k8s.io/client-go/tools/cache/shared_informer.go:905 +0x6b
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:75 +0x5a
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:73 +0x85
能帮忙看下我这个是因为什么吗
删除bitnami 好了,这是什么问题呀