Skip to content

Commit

Permalink
Fix kubernetes online endpoint vulnerable image
Browse files Browse the repository at this point in the history
  • Loading branch information
youhuatu-yh committed Nov 4, 2023
1 parent 045ebc2 commit 5c597b0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"model = Model(path=\"../model-1/model/sklearn_regression_model.pkl\")\n",
"env = Environment(\n",
" conda_file=\"../model-1/environment/conda.yaml\",\n",
" image=\"mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest\",\n",
" image=\"mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04\",\n",
")\n",
"\n",
"blue_deployment = KubernetesOnlineDeployment(\n",
Expand Down Expand Up @@ -398,7 +398,7 @@
"model2 = Model(path=\"../model-2/model/sklearn_regression_model.pkl\")\n",
"env2 = Environment(\n",
" conda_file=\"../model-2/environment/conda.yaml\",\n",
" image=\"mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest\",\n",
" image=\"mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04\",\n",
")\n",
"\n",
"green_deployment = KubernetesOnlineDeployment(\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"model = Model(path=\"../model-1/model/sklearn_regression_model.pkl\")\n",
"env = Environment(\n",
" conda_file=\"../model-1/environment/conda.yaml\",\n",
" image=\"mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest\",\n",
" image=\"mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04\",\n",
")\n",
"\n",
"blue_deployment = KubernetesOnlineDeployment(\n",
Expand Down Expand Up @@ -407,7 +407,7 @@
"model = Model(path=\"../model-1/model/sklearn_regression_model.pkl\")\n",
"env = Environment(\n",
" conda_file=\"../model-1/environment/conda.yaml\",\n",
" image=\"mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest\",\n",
" image=\"mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04\",\n",
")\n",
"\n",
"blue_deployment = KubernetesOnlineDeployment(\n",
Expand Down
14 changes: 7 additions & 7 deletions sdk/python/endpoints/online/model-1/environment/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: model-env
channels:
- conda-forge
dependencies:
- python=3.7
- numpy=1.21.2
- pip=21.2.4
- scikit-learn=0.24.2
- scipy=1.7.1
- python=3.9
- numpy=1.23.5
- pip=23.0.1
- scikit-learn=1.2.2
- scipy=1.10.1
- pip:
- azureml-defaults==1.47.0
- inference-schema[numpy-support]==1.5
- azureml-defaults==1.53.0
- inference-schema[numpy-support]==1.5.1
- joblib==1.2.0
14 changes: 7 additions & 7 deletions sdk/python/endpoints/online/model-2/environment/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: model-env
channels:
- conda-forge
dependencies:
- python=3.7
- numpy=1.21.2
- pip=21.2.4
- scikit-learn=0.24.2
- scipy=1.7.1
- python=3.9
- numpy=1.23.5
- pip=23.0.1
- scikit-learn=1.2.2
- scipy=1.10.1
- pip:
- azureml-defaults==1.47.0
- inference-schema[numpy-support]==1.5
- azureml-defaults==1.53.0
- inference-schema[numpy-support]==1.5.1
- joblib==1.2.0

0 comments on commit 5c597b0

Please sign in to comment.