Deployment Spec
A deployment is maintained by a spec file which is used to change the state of the deployment.
1
image: lucone83/streamlit-nginx # container image used to run your deployment
2
command: # optional command to override the container image's default command
3
- my
4
- command
5
port: 8080 # local container port that your service is running on
6
env: # environment variables that are applied at run time
7
- name: ENV
8
value: VAR
9
resources:
10
replicas: 1 # number of replicas used for your deployment
11
instanceType: C4 # instance type that your deployment will run on
Copied!

Model integration

1
image: tensorflow/serving
2
port: 8501
3
models:
4
- id: model-id
5
path: "/opt/models/my-tf-model"
6
command:
7
- "--model_base_path"
8
- "/opt/models"
9
- "--model-name"
10
- "my-tf-model"
11
resources:
12
replicas: 1
13
instanceType: C4
Copied!
Last modified 12d ago
Copy link