forked from kserve/modelmesh-serving
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default value for TARGETOS/TARGETARCH
&& Update runtime/fvt manifests Signed-off-by: jooho <jlee@redhat.com>
- Loading branch information
Showing
7 changed files
with
122 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
opendatahub/scripts/manifests/fvt/fvt_templates/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- fvt.yaml | ||
patchesStrategicMerge: | ||
- remove_etcd_patch.yaml | ||
namespace: modelmesh-serving |
17 changes: 17 additions & 0 deletions
17
opendatahub/scripts/manifests/fvt/fvt_templates/remove_etcd_patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$patch: delete | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: etcd | ||
--- | ||
$patch: delete | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: model-serving-etcd | ||
--- | ||
$patch: delete | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: etcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
monitoring-namespace=opendatahub | ||
odh-mm-rest-proxy=quay.io/opendatahub/rest-proxy:v0.11.0-rc0 | ||
odh-modelmesh-runtime-adapter=quay.io/opendatahub/modelmesh-runtime-adapter:v0.11.0-rc0 | ||
odh-modelmesh=quay.io/opendatahub/modelmesh:v0.11.0-rc0 | ||
odh-openvino=quay.io/opendatahub/openvino_model_server:2022.3-release | ||
odh-modelmesh-controller=quay.io/opendatahub/modelmesh-controller:v0.11.0-rc0 | ||
odh-model-controller=quay.io/opendatahub/odh-model-controller:v0.11.0-rc0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright 2021 IBM Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: serving.kserve.io/v1alpha1 | ||
kind: ServingRuntime | ||
metadata: | ||
name: mlserver-1.x | ||
labels: | ||
name: modelmesh-serving-mlserver-1.x-SR | ||
spec: | ||
supportedModelFormats: | ||
- name: sklearn | ||
version: "0" # v0.23.1 | ||
autoSelect: true | ||
- name: xgboost | ||
version: "1" # v1.1.1 | ||
autoSelect: true | ||
- name: lightgbm | ||
version: "3" # v3.2.1 | ||
autoSelect: true | ||
|
||
protocolVersions: | ||
- grpc-v2 | ||
multiModel: true | ||
|
||
grpcEndpoint: "port:8085" | ||
grpcDataEndpoint: "port:8001" | ||
|
||
containers: | ||
- name: mlserver | ||
image: mlserver-1:replace | ||
env: | ||
- name: MLSERVER_MODELS_DIR | ||
value: "/models/_mlserver_models/" | ||
- name: MLSERVER_GRPC_PORT | ||
value: "8001" | ||
# default value for HTTP port is 8080 which conflicts with MMesh's | ||
# Litelinks port | ||
- name: MLSERVER_HTTP_PORT | ||
value: "8002" | ||
- name: MLSERVER_LOAD_MODELS_AT_STARTUP | ||
value: "false" | ||
# Set a dummy model name via environment so that MLServer doesn't | ||
# error on a RepositoryIndex call when no models exist | ||
- name: MLSERVER_MODEL_NAME | ||
value: dummy-model-fixme | ||
# Set server addr to localhost to ensure MLServer only listen inside the pod | ||
- name: MLSERVER_HOST | ||
value: "127.0.0.1" | ||
# Increase gRPC max message size to support larger payloads | ||
# Unlimited because it will be restricted at the model mesh layer | ||
- name: MLSERVER_GRPC_MAX_MESSAGE_LENGTH | ||
value: "-1" | ||
resources: | ||
requests: | ||
cpu: 500m | ||
memory: 1Gi | ||
limits: | ||
cpu: "5" | ||
memory: 1Gi | ||
builtInAdapter: | ||
serverType: mlserver | ||
runtimeManagementPort: 8001 | ||
memBufferBytes: 134217728 | ||
modelLoadingTimeoutMillis: 90000 |