blob: 3284529c390ddc42122a0d78ab8cb63b5b18f270 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
---
name: MyDataScienceApp
owner: Bosco Albert Baracus
volumes:
- volume: gettingstartedvol
claim_name: gettingstartedvol-pvc
local:
path: .
images:
- image: myorg/mydatascienceapp
type: python_server
source: .
endpoints:
- endpoint: /predict
module: serving
function: predict
- endpoint: /healthcheck
module: serving
function: healthcheck
- endpoint: /version
module: serving
function: version
services:
- service: my_datascience_server
image: myorg/mydatascienceapp
pipelines:
- pipeline: my_datascience_pipeline
start_date: 1970-01-01
timeout_minutes: 45
schedule: 0 * 1 * *
metrics:
namespace: DataScience
backends: []
tasks:
- task: train
type: python
description: train model
image: myorg/mydatascienceapp
cmd: python -u training.py train
env:
MOUNT_PATH: /mnt/gettingstartedvol
mounts:
- mount: mymount
volume: gettingstartedvol
path: /mnt/gettingstartedvol
- task: validate
type: python
description: validate model and deploy
image: myorg/mydatascienceapp
cmd: python -u training.py validate
env:
MOUNT_PATH: /mnt/gettingstartedvol
mounts:
- mount: mymount
volume: gettingstartedvol
path: /mnt/gettingstartedvol