You can define VESSL Serving via YAML and deploy them as VESSL services on the fly. Use it to build an Infra-as-Code-based deployment strategy, or to manage the deployment of Serving through code instead of manually modifying items with the WEB UI.
message: vessl-yaml-serve-test launch_immediately: true image: quay.io/vessl-ai/kernels:py39 resources: accelerators: T4:1 spot: true volumes: /root/examples: git: clone: https://github.com/vessl-ai/examples revision: 33a49398fc6f87265ac490b1cf587912b337741a run: - workdir: /code/examples command: | python3 mnist.py env: - key: TEST_ENV value: test ports: - name: http type: http port: 8000 autoscaling: min: 1 max: 1 metric: cpu target: 50
Last updated 1 year ago