Kubernetes Operator模式部署controller-manager启动异常

  • nebula 版本:chart

  • 部署方式:单机

  • 安装方式:kubernetes

  • 是否为线上版本:否

  • 硬件信息

    • CPU、内存,硬盘信息:64C/128G/2T/x86_64
    • 操作系统信息:CentOS Linux release 7.9
    • k8s集群信息:1.21.14
  • 问题的具体描述
    k8s部署nebula operator使用helm部署,

helm upgrade --install nebula-operator nebula-operator/ --namespace=nebula-operator --set admissionWebhook.create=false

operator中controller-manager报错,报错信息如下

 2022-09-16T08:42:51.594Z	INFO	setup	command-line-arguments/main.go:92	Welcome to Nebula Operator.

 2022-09-16T08:42:51.594Z	INFO	setup	command-line-arguments/main.go:93	Nebula Operator Version	{"version": {"gitVersion":"a87d229de4337761-dev","gitCommit":"a87d229de4337761ccb29e72d4ce2fa6da9f82df","gitDate":"2021-09-18T08:09:48Z","buildDate":"2021-09-22T05:40:59Z","goVersion":"go1.16","compiler":"gc","platform":"linux/amd64"}}

 I0916 08:42:52.792153       1 request.go:645] Throttling request took 1.094204977s, request: GET:https://10.96.0.1:443/apis/admissionregistration.k8s.io/v1beta1?timeout=32s

 2022-09-16T08:42:54.192Z	INFO	controller-runtime.metrics	metrics/listener.go:44	metrics server is starting to listen	{"addr": "127.0.0.1:8080"}

 2022-09-16T08:42:56.694Z	INFO	setup	command-line-arguments/main.go:138	starting manager

.....INFO日志省略


I0916 08:43:16.093769       1 request.go:645] Throttling request took 1.000763342s, request: GET:https://10.96.0.1:443/apis/events.k8s.io/v1beta1?timeout=32s

 2022-09-16T08:43:17.693Z	ERROR	controller-runtime.source	source/source.go:117	if kind is a CRD, it should be installed before calling Start	{"kind": "StatefulSet.apps.kruise.io", "error": "no matches for kind \"StatefulSet\" in version \"apps.kruise.io/v1alpha1\""}

 2022-09-16T08:43:17.694Z	ERROR	setup	command-line-arguments/main.go:140	problem running manager	{"error": "no matches for kind \"StatefulSet\" in version \"apps.kruise.io/v1alpha1\""}

 2022-09-16T08:43:17.694Z	ERROR	controller-runtime.manager	manager/internal.go:547	error received after stop sequence was engaged	{"error": "context canceled"}

你用的是最新版本1.2.0吧

helm install nebula-operator nebula-operator/nebula-operator --namespace=nebula-operator-system --set admissionWebhook.create=false

1 个赞

还是有点问题,应该不是这个原因,重装了kruise,config-manager报这样的错误,

 E0916 10:13:13.701272       1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)

对了,官网上的这篇文档上 Kubectl 部署 NebulaGraph 集群,地址https://docs.nebula-graph.com.cn/3.2.1/nebula-operator/3.deploy-nebula-graph-cluster/3.1create-cluster-with-kubectl/,中的apps_v1alpha1_nebulacluster.yaml格式有问题

kruise不需要了,1.2.0里这个配置项默认是关闭的

1 个赞

我们不依赖 kruise 了呀:+1:,我提了 docs 的 issue operator change: Kruise is not needed anymore · Issue #2146 · vesoft-inc/nebula-docs-cn · GitHub

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。