崩溃循环后退中的 Camel k算子

cyvaqqii  于 2022-11-07  发布在  Apache
关注(0)|答案(1)|浏览(191)

我正在遵循文档过程和enabling the registration add-on in minikube
所以我跑了

minikube start --addons registry
kamel install

启动群集并在其中安装Camel K。
但是当我运行kubectl get pod时,我得到CrashLoopBackOff作为camel-k-operator的状态。
kubectl get events给了我以下内容:

LAST SEEN   TYPE      REASON              OBJECT                                   MESSAGE
7m9s        Normal    Scheduled           pod/camel-k-operator-848fd8785b-cr9pp    Successfully assigned default/camel-k-operator-848fd8785b-cr9pp to minikube
7m5s        Normal    Pulling             pod/camel-k-operator-848fd8785b-cr9pp    Pulling image "docker.io/apache/camel-k:1.9.2"
2m23s       Normal    Pulled              pod/camel-k-operator-848fd8785b-cr9pp    Successfully pulled image "docker.io/apache/camel-k:1.9.2" in 4m45.3178036s
42s         Normal    Created             pod/camel-k-operator-848fd8785b-cr9pp    Created container camel-k-operator
42s         Normal    Started             pod/camel-k-operator-848fd8785b-cr9pp    Started container camel-k-operator
43s         Normal    Pulled              pod/camel-k-operator-848fd8785b-cr9pp    Container image "docker.io/apache/camel-k:1.9.2" already present on machine
55s         Warning   BackOff             pod/camel-k-operator-848fd8785b-cr9pp    Back-off restarting failed container
7m9s        Normal    SuccessfulCreate    replicaset/camel-k-operator-848fd8785b   Created pod: camel-k-operator-848fd8785b-cr9pp
7m9s        Normal    ScalingReplicaSet   deployment/camel-k-operator              Scaled up replica set camel-k-operator-848fd8785b to 1

运行kubectl logs [podname] -p我得到

{
    "level":        "error",
    "ts":           1658235623.4016757,
    "logger":       "cmd",
    "msg":          "failed to set GOMAXPROCS from cgroups",
    "error":        "path \"/docker/ec4a100d598f3529dbcc3a9364c8caceb32abd8c11632456d58c7948bb756d36\" is not a descendant of mount point root \"/docker/ec4a100d598f3529dbcc3a9364c8caceb32abd8c11632456d58c7948bb756d36/kubelet\" and cannot be exposed from \"/sys/fs/cgroup/rdma/kubelet\"",
    "stacktrace":   "github.com/apache/camel-k/pkg/cmd.(*operatorCmdOptions).run\n\tgithub.com/apache/camel-k/pkg/cmd/operator.go:57\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.4.0/command.go:860\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.4.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.4.0/command.go:902\nmain.main\n\tcommand-line-arguments/main.go:47\nruntime.main\n\truntime/proc.go:225"
}

格式化我们得到的堆栈跟踪:

github.com/apache/camel-k/pkg/cmd.(*operatorCmdOptions).run
    github.com/apache/camel-k/pkg/cmd/operator.go:57
github.com/spf13/cobra.(*Command).execute
    github.com/spf13/cobra@v1.4.0/command.go:860
github.com/spf13/cobra.(*Command).ExecuteC
    github.com/spf13/cobra@v1.4.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
    github.com/spf13/cobra@v1.4.0/command.go:902
main.main
    command-line-arguments/main.go:47
runtime.main
    runtime/proc.go:225

Camel K客户端1.9.2
迷你库贝v1.25.2

o2rvlv0m

o2rvlv0m1#

可能是bug with the docker driver
解决方法是改用hyperv驱动程序:

minikube start --addons registry --driver hyperv

相关问题