Browse Source

add proxy-body-size

Zhang Li 1 year ago
parent
commit
1e94c13899
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dag-jupyter/internal/api/helm-wrapper.go

+ 2 - 0
dag-jupyter/internal/api/helm-wrapper.go

@@ -35,6 +35,8 @@ func genParam(req *types.CreateJupyterInfo) map[string]interface{} {
 		// 	"kubernetes.io/ingress.class": req.IngressClass,
 		// })
 		settings = append(settings, fmt.Sprintf("ingress.jupyterlab.annotations.kubernetes\\.io/ingress\\.class=%s", req.IngressClass))
+		settings = append(settings, fmt.Sprintf("ingress.jupyterlab.annotations.nginx\\.ingress\\.kubernetes\\.io/proxy-body-size=%s", "8192m"))
+
 	}
 	settings = append(settings, fmt.Sprintf("jupyterlab.image.repository=%s", req.Image))
 	settings = append(settings, fmt.Sprintf("jupyterlab.image.tag=%s", req.Tag))