For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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-ctl configured 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

Field reference
Field
Required
Purpose

spec.compute

Yes

Compute target where the application runs.

spec.runAsUser

Yes

DataOS user identity used to run the application.

spec.replicas

Yes

Number of application replicas.

spec.resources.requests

Yes

CPU and memory requested for the application.

spec.resources.limits

Yes

CPU and memory limits for the application.

spec.service.type

Yes

Runtime type, such as python.

spec.service.image

Yes

Container image that runs the application.

spec.service.imagePullSecret

No

Secret used to pull a private image.

spec.service.command

Yes

Entrypoint command for the container.

spec.service.arguments

No

Arguments passed to the command.

spec.service.port

Yes

Port exposed by the application container.

spec.service.envs

No

Environment variables passed to the application.

spec.service.hostname

No

Hostname assigned to the backing service.

spec.service.stateful

No

Whether the service runs as stateful.

spec.service.http.path

Yes

HTTP path used to reach the application.

spec.service.http.stripPath

No

Whether the gateway strips the path before forwarding.

spec.service.http.noNetworkAuthorization

No

Whether network authorization is bypassed for the HTTP path.

spec.service.http.ingress.enabled

No

Whether ingress is enabled for the application.

spec.service.http.ingress.path

No

External ingress path for the application.

spec.service.http.ingress.appDetailSpec

No

App detail identifier used by ingress metadata.

spec.app.domain

Yes

Domain where the application appears in the catalog.

spec.app.description

Yes

Catalog description for the application.

spec.app.owners

Yes

Owners responsible for the application.

spec.app.products

No

Data Products consumed by the application.

spec.app.link.title

No

Label for the action that opens the application.

spec.app.link.url

No

Path opened from the application catalog entry, for example /orders360-dashboard. If omitted, DataOS uses spec.service.http.ingress.path, then spec.service.http.path, then /.

spec.app.visibility.scope

No

Which Tenants can see the App in the catalog: global, tenants, or pattern. If spec.app.visibility is omitted, the App is visible only to its own Tenant.

spec.app.visibility.tenants

With scope: tenants

Non-empty list of unique Tenant IDs that can see the App.

spec.app.visibility.pattern

With scope: pattern

Glob pattern matched against Tenant IDs, for example "eng-*".

Validate the deployment

Validate the deployment
Check
Expected result

Resource applies successfully

dataos-ctl accepts the app Resource manifest.

Application URL opens

The URL in spec.app.link.url loads the deployed application.

Data Product relationship is visible

The application catalog entry shows the Data Product listed under spec.app.products.

Runtime configuration is available

The application can read environment variables such as VULCAN_BASE_URL and VULCAN_AUTH_TOKEN.

Troubleshooting

Image pull fails

The image is private or the pull Secret is missing. Add spec.service.imagePullSecret with the correct image pull Secret name and re-apply the manifest. See Container registries for how to create the Secret.

Application opens on the wrong path

The HTTP path or ingress path does not match the app URL. Confirm spec.service.http.path, spec.service.http.ingress.path, and spec.app.link.url all use the same route.

Data Product relationship is not shown in the catalog

spec.app.products is missing or the product name is incorrect. Add the correct Data Product name under spec.app.products and re-apply the manifest.

API calls fail at runtime

The Data Product API base URL or token is missing from the application environment. Confirm VULCAN_BASE_URL and VULCAN_AUTH_TOKEN are set correctly in spec.service.envs. Use a valid DataOS API token for VULCAN_AUTH_TOKEN.

For the full field reference, see the Deploy a data application reference in References.

Last updated

Was this helpful?