我正在尝试在 kubernetes 上部署 Elastic Cloud。当我第一次尝试时,我已经设法在 kubernetes 集群上启动了 elasticsearch。但是现在由于某种原因,当我尝试部署相同的快速启动 elasticsearch 时,它甚至从未为其部署 pod。没有为它提供任何服务。我认为是因为弹性运算符在启动时关闭。
我试图删除 all-in-one.yml 并重新部署它。我试图重置集群并重新部署它。他们都没有工作。我正在成功部署其他非 Elastic pod。elastic-operator 的日志如下(美化):
{
"log.level":"info",
"@timestamp":"2021-01-19T13:04:41.881Z",
"log.logger":"manager",
"message":"maxprocs: Updating GOMAXPROCS=1: determined from CPU quota",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0"
}{
"log.level":"info",
"@timestamp":"2021-01-19T13:04:41.882Z",
"log.logger":"manager",
"message":"Setting default container registry",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0",
"container_registry":"docker.elastic.co"
}{
"log.level":"info",
"@timestamp":"2021-01-19T13:04:41.882Z",
"log.logger":"manager",
"message":"Setting up scheme",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0"
}{
"log.level":"info",
"@timestamp":"2021-01-19T13:04:41.887Z",
"log.logger":"manager",
"message":"Operator configured to manage all namespaces",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0"
}{
"log.level":"error",
"@timestamp":"2021-01-19T13:05:11.888Z",
"log.logger":"controller-runtime.manager",
"message":"Failed to get API Group-Resources",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0",
"error":"Get \"https://10.96.0.1:443/api?timeout=1m0s\": dial tcp 10.96.0.1:443: i/o timeout",
"error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/manager.New\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/manager.go:279\ngithub.com/elastic/cloud-on-k8s/cmd/manager.startOperator\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/manager/main.go:484\ngithub.com/elastic/cloud-on-k8s/cmd/manager.doRun.func2\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/manager/main.go:319"
}{
"log.level":"error",
"@timestamp":"2021-01-19T13:05:11.888Z",
"log.logger":"manager",
"message":"Failed to create controller manager",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0",
"error":"Get \"https://10.96.0.1:443/api?timeout=1m0s\": dial tcp 10.96.0.1:443: i/o timeout",
"error.stack_trace":"github.com/elastic/cloud-on-k8s/cmd/manager.startOperator\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/manager/main.go:486\ngithub.com/elastic/cloud-on-k8s/cmd/manager.doRun.func2\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/manager/main.go:319"
}{
"log.level":"error",
"@timestamp":"2021-01-19T13:05:11.888Z",
"log.logger":"manager",
"message":"Shutting down due to error",
"service.version":"1.3.1+a0a0a212",
"service.type":"eck",
"ecs.version":"1.4.0",
"error":"Get \"https://10.96.0.1:443/api?timeout=1m0s\": dial tcp 10.96.0.1:443: i/o timeout",
"error.stack_trace":"github.com/elastic/cloud-on-k8s/cmd/manager.doRun\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/manager/main.go:327\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/go/src/github.com/elastic/cloud-on-k8s/cmd/main.go:30\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:204"
}