Skip to content

Commit

Permalink
Include max request size directive for jupyter ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
katmastt committed Mar 21, 2024
1 parent 48fd0b9 commit 46ffc70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/params-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'jupyter_services_url' => 'jupyter service url',
'jupyter_ingresses_url' => 'jupyter ingress url',
'jupyter_bearer_token' => 'jupyter auth token',
'jupyter_ingress_proxy_body_size' => 'max size of request',
'tmpFolderPath' => 'json folder for jupyter',
'userDataPath' => '',
'systemUser' => '',
Expand Down
2 changes: 1 addition & 1 deletion models/JupyterServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function startServer()
'name' => $sid,
'annotations' => array(
'kubernetes.io/ingress.class' => 'nginx',

'nginx.ingress.kubernetes.io/proxy-body-size' => Yii::$app->params['jupyter_ingress_proxy_body_size'] ?? "100m"
)
),
'spec' => array (
Expand Down

0 comments on commit 46ffc70

Please sign in to comment.