Deploy
Deploy a containerized Data Product application in DataOS using an app Resource.
Use an app Resource when DataOS should run the application from a container image. The Resource defines the runtime container, compute target, HTTP ingress path, environment variables, and catalog relationship to the Data Product.
This is a developer task, not an end-user one: building a container image and applying resource YAML through dataos-ctl is a different register from the BI-tool and database-client paths earlier in Activate. Bring in a developer teammate if that tooling isn't yours to run.
This page uses an Orders360 Streamlit dashboard as an example.
Prerequisites
You have a Data Product that the application consumes.
You have a container image for the application.
You have the Data Consumer and Data Developer role.
You have permission to create the Resource within the target Tenant.
You have
dataos-ctlconfigured for the target Tenant.You know the target compute name, run-as user, application port, and ingress path.
You have the Data Product API base URL and a DataOS API token available as runtime configuration (see API tokens for how tokens work).
For private container images, you have an image pull Secret. See Container registries for how to create one.
1. Prepare the manifest
Create an app Resource manifest for the application. Replace the names, image, user, paths, Data Product URL, token reference, owners, and product names with values for your environment.
version: v1alpha
type: app
name: orders360-dashboard
title: Orders360 Dashboard
description: KPI dashboard for the Orders360 data product via the Vulcan API.
owner: iamgroottmdcio
tags:
- dashboard
- streamlit
- orders360
- vulcan
spec:
compute: pacific
runAsUser: iamgroottmdcio
logLevel: INFO
replicas: 1
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
service:
type: python
image: dockerkk97/orders360-dashboard:0.0.1
imagePullSecret: docker-secret
command:
- streamlit
arguments:
- run
- app.py
- --server.port=8501
- --server.address=0.0.0.0
- --server.headless=true
- --browser.gatherUsageStats=false
port: 8501
envs:
VULCAN_BASE_URL: "https://<instance-url>/vulcan/tenants/<tenant>/data-products/<tenant>-orders360/api/v1"
VULCAN_AUTH_TOKEN: "${VULCAN_AUTH_TOKEN}"
hostname: orders360-dashboard
stateful: false
http:
path: /orders360-dashboard
stripPath: false
ingress:
enabled: true
path: /orders360-dashboard
stripPath: false
appDetailSpec: orders360-dashboard
app:
domain: sales_operations
description: Overview of physical models, semantics, quality, runs, plans, and query usage.
tags:
- app
- dashboard
- orders360
owners:
- iamgroottmdcio
products:
- orders360
link:
title: Open dashboard
url: /orders360-dashboard
visibility:
scope: tenants
tenants:
- <tenant>Set spec.app.link.url as a path (for example /orders360-dashboard), so the same manifest works unchanged across environments. If spec.app.link.url is omitted, DataOS uses spec.service.http.ingress.path, then spec.service.http.path, then /.
spec.app.visibility controls which Tenants can see the App in the catalog. Set scope to global (every Tenant), tenants (only the Tenant IDs listed under tenants), or pattern (every Tenant ID that matches the glob in pattern, for example "eng-*"). If spec.app.visibility is omitted, the App is visible only to its own Tenant. See the Deploy a data application reference for each scope.
Public application variant
For a public container image, omit imagePullSecret. To expose the application path without network authorization, set noNetworkAuthorization: true under spec.service.http.
2. Apply the manifest
Apply the Resource manifest with dataos-ctl.
3. Configure path access
If the application uses network authorization, configure the required ingress path access for the application path. The example grants access for both /orders360-dashboard** and /orders360-app**.
4. Open the application
After deployment, open the URL configured in spec.app.link.url. The application also appears in the catalog with the Data Product relationship defined under spec.app.products.
Field reference
Validate the deployment
Troubleshooting
For the full field reference, see the Deploy a data application reference in References.
Last updated
Was this helpful?