<p>I am trying to install the Elastic Cloud on Kubernetes (ECK) Kubernetes operator with the all-in-one.yaml file, as per the tutorial: <a href="https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-install-all-in-one.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-install-all-in-one.html</a>
But I am getting an error:</p>
<blockquote>
<p>Error from server: error when creating &quot;https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml&quot;: the server responded with the status code 413 but did not return more information (post customresourcedefinitions.apiextensions.k8s.io)</p>
</blockquote>
<p>I am a bit lost as to how to proceed solving this issue...</p>
<p>Command:</p>
<pre><code>kubectl apply -f https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml  --insecure-skip-tls-verify 
</code></pre>
<p>complete log:</p>
<pre><code>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 &quot;https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml&quot;: the server responded with the status code 413 but did not return more information (post customresourcedefinitions.apiextensions.k8s.io)
</code></pre>
<p>UPDATE 1:</p>
<p>Running the command (with windows powershell):</p>
<pre><code>curl https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml | kubectl apply  --insecure-skip-tls-verify -f-
</code></pre>
<p>I get:</p>
<pre><code>error: error parsing STDIN: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context
</code></pre>
<p>UPDATE 2:</p>
<p>current versions:</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.3&quot;, GitCommit:&quot;1e11e4a2108024935ecfcb2912226cedeafd99df&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-10-14T12:50:19Z&quot;, GoVersion:&quot;go1.15.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;windows/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.6&quot;, GitCommit:&quot;dff82dc0de47299ab66c83c626e08b245ab19037&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-07-15T16:51:04Z&quot;, GoVersion:&quot;go1.13.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>

<p>I managed to fix the issue by setting the proxy-body-size config map value in the system nginx config map to 8m.</p>
<pre><code>proxy-body-size=8m
Namespace=ingress-nginx
Config Map=nginx-configuration
</code></pre>
<p>thank you @juan-carlos-alafita for providing the relevant links!</p>
<p><a href="https://stackoverflow.com/questions/49918313/413-error-with-kubernetes-and-nginx-ingress-controller">413 error with Kubernetes and Nginx ingress controller</a></p>
<p><a href="https://www.digitalocean.com/community/questions/413-request-entity-too-large-nginx" rel="nofollow noreferrer">https://www.digitalocean.com/community/questions/413-request-entity-too-large-nginx</a></p>
