Authoring devfiles - ComponentsAdding components

Authoring devfiles - Components

Adding components

Each component in a single devfile must have a unique name and use one of the objects: container, kubernetes, openshift, image or volume.

Prerequisites

Procedure

  1. Add a components section in the devfile, containing a list of one or more components.

  2. For each component, define a unique value for the mandatory name property.

  3. Define one of the following types for the component: kubernetes, container, openshift, image, or volume.

  4. Adding a kubernetes or openshift component

  5. Adding a container component

  6. Adding an image component

  7. Adding a volume component

  8. Limiting resources usage

  9. Defining environment variables

  10. Defining endpoints

  11. Defining kubernetes resources

Additional resources