Creating an application version#
We now need to create an application-version.yaml
file to specify the details of the version of the Omniverse Kit App we want to deploy, including the container image, version, and related metadata.
Creating an application version#
Create a new file called
application-version.yaml
.In the file, specify the
Kind
asApplicationVersion
.apiVersion: omniverse.nvidia.com/v1 kind: ApplicationVersion metadata: name: usd-viewer-0.2.0 labels: app: usd-viewer applicationName: usd-viewer version: '0.2.0' spec: helm_chart: ngc-omniverse/kit-appstream-session helm_chart_version: '1.4.0' container: nvcr.io/nvidia/omniverse/usd-viewer container_version: '0.2.0'
2.1 Specify the
ApplicationVersion
ID and semantic version of the application:- metadata.name:
The
ApplicationVersion
ID- metadata.labels.version:
The semantic version of the application.
2.2 We use metadata from the
Application
to link the version to it:- metadata.labels.app:
Application.metadata.name
- metadata.labels.applicationName:
Application.spec.name
2.3 The
spec
section is where you define the container image and version for the Kit App:- spec.container:
Container image to use
- spec.container_version:
Version of the container image to use
2.4 That is also where you specify a Helm chart used to deploy it:
- spec.helm_chart:
URL of the Helm chart to use
- spec.helm_chart_version:
Version of the Helm chart to use
Install the application version using kubectl:
kubectl apply -f application-version.yaml -n omni-streaming
List the new application version:
kubectl describe applicationversions.omniverse.nvidia.com usd-viewer-0.2.0 -n omni-streaming
List the new application version by calling the APS endpoint:
curl http://<ingress url of the AP service>/cfg/apps/usd-viewer/versions