Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 尝试安装弹性ECK时出现错误413_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Kubernetes_Kubectl_Kubernetes Operator - Fatal编程技术网 elasticsearch 尝试安装弹性ECK时出现错误413,elasticsearch,kubernetes,kubectl,kubernetes-operator,elasticsearch,Kubernetes,Kubectl,Kubernetes Operator" /> elasticsearch 尝试安装弹性ECK时出现错误413,elasticsearch,kubernetes,kubectl,kubernetes-operator,elasticsearch,Kubernetes,Kubectl,Kubernetes Operator" />

elasticsearch 尝试安装弹性ECK时出现错误413

elasticsearch 尝试安装弹性ECK时出现错误413,elasticsearch,kubernetes,kubectl,kubernetes-operator,elasticsearch,Kubernetes,Kubectl,Kubernetes Operator,我正在尝试使用all-in-one.yaml文件在Kubernetes(ECK)Kubernetes操作符上安装弹性云,如教程所示: 但我得到了一个错误: 服务器错误:创建“”时出错https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml“:服务器以状态代码413响应,但未返回更多信息(post customresourcedefinitions.apiextensions.k8s.io) 对于如何继续解决这个问题,我有点不知

我正在尝试使用all-in-one.yaml文件在Kubernetes(ECK)Kubernetes操作符上安装弹性云,如教程所示: 但我得到了一个错误:

服务器错误:创建“”时出错https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml“:服务器以状态代码413响应,但未返回更多信息(post customresourcedefinitions.apiextensions.k8s.io)

对于如何继续解决这个问题,我有点不知所措

命令:

kubectl apply -f https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml  --insecure-skip-tls-verify 
完整日志:

namespace/elastic-system unchanged
serviceaccount/elastic-operator unchanged
secret/elastic-webhook-server-cert unchanged
configmap/elastic-operator unchanged
customresourcedefinition.apiextensions.k8s.io/apmservers.apm.k8s.elastic.co configured
customresourcedefinition.apiextensions.k8s.io/beats.beat.k8s.elastic.co configured
customresourcedefinition.apiextensions.k8s.io/enterprisesearches.enterprisesearch.k8s.elastic.co configured
customresourcedefinition.apiextensions.k8s.io/kibanas.kibana.k8s.elastic.co configured
clusterrole.rbac.authorization.k8s.io/elastic-operator unchanged
clusterrole.rbac.authorization.k8s.io/elastic-operator-view unchanged
clusterrole.rbac.authorization.k8s.io/elastic-operator-edit unchanged
clusterrolebinding.rbac.authorization.k8s.io/elastic-operator unchanged
service/elastic-webhook-server unchanged
statefulset.apps/elastic-operator configured
validatingwebhookconfiguration.admissionregistration.k8s.io/elastic-webhook.k8s.elastic.co configured
Error from server: error when creating "https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml": the server responded with the status code 413 but did not return more information (post customresourcedefinitions.apiextensions.k8s.io)
更新1:

运行命令(使用windows powershell):

我得到:

error: error parsing STDIN: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context
更新2:

当前版本:

Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:51:04Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

我通过将系统nginx config map中的proxy body size config map值设置为8m,成功地解决了这个问题

proxy-body-size=8m
Namespace=ingress-nginx
Config Map=nginx-configuration
感谢@juan carlos alafita提供相关链接


为什么要使用
--不安全的跳过tls验证
?你在使用某种代理吗?413听起来可能有限制。我使用的是
--unsecure skip tls verify
,因为证书存在一些问题,如果没有标志,我会得到一个安全错误。其他命令也可以工作。我搞不清楚什么是极限,什么超过了极限?如果你做
curl会发生什么https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml |kubectl应用-f-
?您能在浏览器中打开此yaml吗?你在哪里运行这个?您使用的是公司网络吗?我可以在浏览器中打开它,yaml部分应用,您可以从日志中看到。这不是一个公司网络,我是通过互联网运行的。我还试着通过rancher kubectl运行这个命令。检查这是否有帮助。和
proxy-body-size=8m
Namespace=ingress-nginx
Config Map=nginx-configuration