Skip to main content
Version: v3

odo describe component

odo describe component command is useful for getting information about a component.

Running the command

There are 2 ways to describe a component:

Describe with access to Devfile

odo describe component
Example
$ odo describe component
Name: my-nodejs
Display Name: Node.js Runtime
Project Type: nodejs
Language: javascript
Version: 1.0.1
Description: Stack with Node.js 14
Tags: NodeJS, Express, ubi8

Running in: Deploy

Supported odo features:
• Dev: true
• Deploy: true
• Debug: true

Container components:
• runtime

Kubernetes components:
• outerloop-deployment
• outerloop-service
• outerloop-url-ingress
• outerloop-url-route

Kubernetes Ingresses:
• my-nodejs-app: nodejs.example.com/
• my-nodejs-app: nodejs.example.com/foo

Kubernetes Routes:
• my-nodejs-app: my-nodejs-app-phmartin-crt-dev.apps.sandbox-m2.ll9k.p1.openshiftapps.com/testpath

This command returns information extracted from the Devfile:

  • metadata (name, display name, project type, language, version, description and tags)
  • supported odo features, indicating if the Devfile defines necessary information to run odo dev, odo dev --debug and odo deploy
  • the list of container components,
  • the list of Kubernetes components.
  • the list of forwarded ports if the component is running in Dev mode.

The command also displays if the component is currently running in the cluster or in Podman on Dev and/or Deploy mode.

Describe without access to Devfile

odo describe component --name <component_name> [--namespace <namespace>]
Example
$ odo describe component --name my-nodejs
Name: my-nodejs
Display Name: Unknown
Project Type: nodejs
Language: Unknown
Version: Unknown
Description: Unknown
Tags:

Running in: Deploy

Supported odo features:
• Dev: Unknown
• Deploy: Unknown
• Debug: Unknown

Kubernetes Ingresses:
• my-nodejs-app: nodejs.example.com/
• my-nodejs-app: nodejs.example.com/foo

Kubernetes Routes:
• my-nodejs-app: my-nodejs-app-phmartin-crt-dev.apps.sandbox-m2.ll9k.p1.openshiftapps.com/testpath

The command extracts information from the labels and annotations attached to the deployed component to display the known metadata of the Devfile used to deploy the component.

The command also displays if the component is currently running in the cluster or in Podman on Dev and/or Deploy mode.

Targeting a specific platform

By default, odo describe component will search components in both the current namespace of the cluster and podman. You can restrict the search to one of the platforms only, using the --platform flag, giving a value cluster or podman.