You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/scale-with-bentocloud/deployment/configure-deployments.rst
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,38 @@ To list available instance types on your BentoCloud account, run:
89
89
90
90
Choose the instance type that best fits the performance requirements and resource demands of your application. The instance type should be compatible with the deployment environment and supported by the underlying infrastructure.
91
91
92
+
Labels
93
+
^^^^^^
94
+
You can add labels to your Deployment for better organization and management. Labels are key-value pairs that help you categorize and filter your Deployments based on specific attributes.
95
+
96
+
.. tab-set::
97
+
98
+
.. tab-item:: BentoML CLI
99
+
100
+
To add labels via the BentoML CLI, you can use the ``--label`` option:
When using the Python API, labels are specified through the ``labels`` parameter, which accepts a list of dictionaries. Each dictionary in the list represents a single label. Here's an example:
109
+
110
+
.. code-block:: python
111
+
112
+
import bentoml
113
+
114
+
bentoml.deployment.create(
115
+
bento="./path_to_your_project",
116
+
labels=[
117
+
{"key": "key1", "value": "value1"}, # First label
118
+
{"key": "key2", "value": "value2"} # Second label
119
+
]
120
+
)
121
+
122
+
Once set, you can use these labels to filter and manage your Deployments in the BentoCloud dashboard or via the BentoML CLI.
0 commit comments