docker - 413 FIle Upload issue for more than 50mb Drupal 9 AKS using webdevops/php-nginx

one text

My Drupal site is hosted on Azure platform using Azure Kubernetes Service. I am using webdevops/php-nginx:8.0

I have set the nginx controller config for

nginx.ingress.kubernetes.io/client-body-buffer-size: 256m
nginx.ingress.kubernetes.io/proxy-body-size: 256m
nginx.ingress.kubernetes.io/proxy-buffer-size: 1m
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/proxy-buffers: 16 1m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
nginx.ingress.kubernetes.io/proxy-max-temp-file-size: 256m
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
nginx.org/client-max-body-size: 256m

Also made override the nginx config file for docker image

server {
    root /app;

    index index.php;
    client_max_body_size 1024m;
    client_body_buffer_size 1024m;
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

Note: Already updated php.ini with following config

; PHP settings
[php]
memory_limit=2048M
max_execution_time=2048
post_max_size = 1024M
upload_max_filesize = 1024M

But still getting 413 error

412 ajax error

Source