Nginx.ingress.kubernetes.io/proxy-body-size not workingkubernetes ingress controller clarificationGKE with Ingress setup always gives status UNHEALTHYUnable to Access New Harbor Deployment on Kubernetes ClusterNginx Ingress controller 502 bad gateway for large file uploadsWhat's the difference between jwilder/nginx-proxy and kubernetes/ingress-nginxKubernetes how does Kubectl exec works and how to troubleshoot itProxy nginx to ingress-nginx for migration purposeExclude specific hosts from ssl redirect in Kubernetes Nginx IngressNginx reverse proxy in front of a Kubernetes IngressUsing Kuberenetes ingress controller as reverse proxy to other services in the cluster

Party going through airport security at separate times?

VHF 50 Ω Antenna Over 75 Ω TV Coax

Did Rabbi Akiva accept arguments from ignorance?

What exactly is a "murder hobo"?

First Entry Member State schengen visa

Users forgetting to regenerate PDF before sending it

Publishing papers seem natural to many, while I find it really hard to think novel stuff to pursue till publication. How to cope up with this?

Why does Trump want a citizenship question on the census?

When I press the space bar it deletes the letters in front of it

What was the profession 芸者 (female entertainer) called in Germany?

I make billions (#6)

VHDL: is there a way to create an entity into which constants can be passed?

Is it okay to use open source code to do an interview task?

Found and corrected a mistake on someone's else paper -- praxis?

Why did Old English lose both thorn and eth?

Adjust the Table

When did "&" stop being taught alongside the alphabet?

How does one acquire an undead eyeball encased in a gem?

Is it possible to complete a PhD in CS in 3 years?

How to evaluate the performance of open source solver?

Would a Nikon FG 20 film SLR camera take pictures without batteries?

What is a writing material that persists forever or for a long time?

Is it stylistically sound to use onomatopoeic words?

No Torah = Revert to Nothingness?



Nginx.ingress.kubernetes.io/proxy-body-size not working


kubernetes ingress controller clarificationGKE with Ingress setup always gives status UNHEALTHYUnable to Access New Harbor Deployment on Kubernetes ClusterNginx Ingress controller 502 bad gateway for large file uploadsWhat's the difference between jwilder/nginx-proxy and kubernetes/ingress-nginxKubernetes how does Kubectl exec works and how to troubleshoot itProxy nginx to ingress-nginx for migration purposeExclude specific hosts from ssl redirect in Kubernetes Nginx IngressNginx reverse proxy in front of a Kubernetes IngressUsing Kuberenetes ingress controller as reverse proxy to other services in the cluster






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I want to increase size of post body of each request in Ingress. So I add the



nginx.ingress.kubernetes.io/proxy-body-size: 8m


in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping.
Hereis the configs:



YAML file:



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/configuration-snippet: |-
set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

nginx.ingress.kubernetes.io/proxy-body-size: 8m
creationTimestamp: 2018-09-11T12:19:02Z
generation: 116
name: test-dms
namespace: test-dms
resourceVersion: "95490045"
selfLink: /apis/extensions/v1beta1/namespaces/test-dms/ingresses/test-dms
uid: de7c4c1b-b5bc-11e8-84c0-005056bf6431
spec:
rules:
- host: testdms.test.com
http:
paths:
- backend:
serviceName: ingress-e5a45b0dc688c653b79d4b5942ebbe7c
servicePort: 80
path: /test
status:
loadBalancer:
ingress:
-
- ip: 198.100.101.171
- ip: 198.100.101.172
- ip: 198.100.101.173
- ip: 198.100.101.61


describe result:



Annotations:
configuration-snippet: set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal UPDATE 36s (x38 over 2h) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE 21s (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x84 over 64d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x39 over 12d) nginx-ingress-controller Ingress test-dms/test-dms









share|improve this question






















  • If for no other reason, set requires a trailing ;

    – Matthew L Daniel
    Mar 26 at 4:30











  • You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

    – leodotcloud
    Apr 12 at 1:49

















1















I want to increase size of post body of each request in Ingress. So I add the



nginx.ingress.kubernetes.io/proxy-body-size: 8m


in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping.
Hereis the configs:



YAML file:



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/configuration-snippet: |-
set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

nginx.ingress.kubernetes.io/proxy-body-size: 8m
creationTimestamp: 2018-09-11T12:19:02Z
generation: 116
name: test-dms
namespace: test-dms
resourceVersion: "95490045"
selfLink: /apis/extensions/v1beta1/namespaces/test-dms/ingresses/test-dms
uid: de7c4c1b-b5bc-11e8-84c0-005056bf6431
spec:
rules:
- host: testdms.test.com
http:
paths:
- backend:
serviceName: ingress-e5a45b0dc688c653b79d4b5942ebbe7c
servicePort: 80
path: /test
status:
loadBalancer:
ingress:
-
- ip: 198.100.101.171
- ip: 198.100.101.172
- ip: 198.100.101.173
- ip: 198.100.101.61


describe result:



Annotations:
configuration-snippet: set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal UPDATE 36s (x38 over 2h) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE 21s (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x84 over 64d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x39 over 12d) nginx-ingress-controller Ingress test-dms/test-dms









share|improve this question






















  • If for no other reason, set requires a trailing ;

    – Matthew L Daniel
    Mar 26 at 4:30











  • You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

    – leodotcloud
    Apr 12 at 1:49













1












1








1








I want to increase size of post body of each request in Ingress. So I add the



nginx.ingress.kubernetes.io/proxy-body-size: 8m


in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping.
Hereis the configs:



YAML file:



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/configuration-snippet: |-
set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

nginx.ingress.kubernetes.io/proxy-body-size: 8m
creationTimestamp: 2018-09-11T12:19:02Z
generation: 116
name: test-dms
namespace: test-dms
resourceVersion: "95490045"
selfLink: /apis/extensions/v1beta1/namespaces/test-dms/ingresses/test-dms
uid: de7c4c1b-b5bc-11e8-84c0-005056bf6431
spec:
rules:
- host: testdms.test.com
http:
paths:
- backend:
serviceName: ingress-e5a45b0dc688c653b79d4b5942ebbe7c
servicePort: 80
path: /test
status:
loadBalancer:
ingress:
-
- ip: 198.100.101.171
- ip: 198.100.101.172
- ip: 198.100.101.173
- ip: 198.100.101.61


describe result:



Annotations:
configuration-snippet: set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal UPDATE 36s (x38 over 2h) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE 21s (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x84 over 64d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x39 over 12d) nginx-ingress-controller Ingress test-dms/test-dms









share|improve this question














I want to increase size of post body of each request in Ingress. So I add the



nginx.ingress.kubernetes.io/proxy-body-size: 8m


in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping.
Hereis the configs:



YAML file:



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/configuration-snippet: |-
set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

nginx.ingress.kubernetes.io/proxy-body-size: 8m
creationTimestamp: 2018-09-11T12:19:02Z
generation: 116
name: test-dms
namespace: test-dms
resourceVersion: "95490045"
selfLink: /apis/extensions/v1beta1/namespaces/test-dms/ingresses/test-dms
uid: de7c4c1b-b5bc-11e8-84c0-005056bf6431
spec:
rules:
- host: testdms.test.com
http:
paths:
- backend:
serviceName: ingress-e5a45b0dc688c653b79d4b5942ebbe7c
servicePort: 80
path: /test
status:
loadBalancer:
ingress:
-
- ip: 198.100.101.171
- ip: 198.100.101.172
- ip: 198.100.101.173
- ip: 198.100.101.61


describe result:



Annotations:
configuration-snippet: set $test_host "testdms.test.com"
if ($host == $test_host)
return 301 $scheme://$test_host/webui/;

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal UPDATE 36s (x38 over 2h) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE 21s (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x47 over 23d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x84 over 64d) nginx-ingress-controller Ingress test-dms/test-dms
Normal UPDATE <invalid> (x39 over 12d) nginx-ingress-controller Ingress test-dms/test-dms






nginx kubernetes kubernetes-ingress rancher






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 23:20









mohammad_1m2mohammad_1m2

4643 gold badges7 silver badges27 bronze badges




4643 gold badges7 silver badges27 bronze badges












  • If for no other reason, set requires a trailing ;

    – Matthew L Daniel
    Mar 26 at 4:30











  • You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

    – leodotcloud
    Apr 12 at 1:49

















  • If for no other reason, set requires a trailing ;

    – Matthew L Daniel
    Mar 26 at 4:30











  • You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

    – leodotcloud
    Apr 12 at 1:49
















If for no other reason, set requires a trailing ;

– Matthew L Daniel
Mar 26 at 4:30





If for no other reason, set requires a trailing ;

– Matthew L Daniel
Mar 26 at 4:30













You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

– leodotcloud
Apr 12 at 1:49





You could disable the limit all together by using nginx.ingress.kubernetes.io/proxy-body-size: 0. Also, can you try deleting and recreating the Ingress? What version of Rancher are you using? Can you give more elaborate steps to reproduce the problem? If possible, can you give simplified yaml code to copy/paste and check?

– leodotcloud
Apr 12 at 1:49












1 Answer
1






active

oldest

votes


















0














Amendment of the ingress objects in K8s sometimes misbehave, so it's recommended to re-create rather than edit.



If it still didn't work, try to set this value globally for all ingress rules using a configmap



 apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
data:
proxy-body-size: "8m"





share|improve this answer























  • Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

    – mohammad_1m2
    Apr 26 at 20:26










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347770%2fnginx-ingress-kubernetes-io-proxy-body-size-not-working%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Amendment of the ingress objects in K8s sometimes misbehave, so it's recommended to re-create rather than edit.



If it still didn't work, try to set this value globally for all ingress rules using a configmap



 apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
data:
proxy-body-size: "8m"





share|improve this answer























  • Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

    – mohammad_1m2
    Apr 26 at 20:26















0














Amendment of the ingress objects in K8s sometimes misbehave, so it's recommended to re-create rather than edit.



If it still didn't work, try to set this value globally for all ingress rules using a configmap



 apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
data:
proxy-body-size: "8m"





share|improve this answer























  • Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

    – mohammad_1m2
    Apr 26 at 20:26













0












0








0







Amendment of the ingress objects in K8s sometimes misbehave, so it's recommended to re-create rather than edit.



If it still didn't work, try to set this value globally for all ingress rules using a configmap



 apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
data:
proxy-body-size: "8m"





share|improve this answer













Amendment of the ingress objects in K8s sometimes misbehave, so it's recommended to re-create rather than edit.



If it still didn't work, try to set this value globally for all ingress rules using a configmap



 apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
data:
proxy-body-size: "8m"






share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 26 at 13:20









A_SuhA_Suh

1,2821 silver badge7 bronze badges




1,2821 silver badge7 bronze badges












  • Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

    – mohammad_1m2
    Apr 26 at 20:26

















  • Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

    – mohammad_1m2
    Apr 26 at 20:26
















Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

– mohammad_1m2
Apr 26 at 20:26





Yes, configmap works fine. I want to config this param only for this ingress. I must be check the re-create. Thanks

– mohammad_1m2
Apr 26 at 20:26






Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347770%2fnginx-ingress-kubernetes-io-proxy-body-size-not-working%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?