ComponentsAdding components

Components

Adding components

Each component in a single devfile must have a unique name.

Prerequisites

Procedure

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

  2. For each component, define an unique value for the mandatory name attribute.

  3. For each component, define a mandatory type of one of the following types: kubernetes, container or volume.

  4. Adding kubernetes component

  5. Adding container component

  6. Specifying persistent storage

  7. Limiting resources usage

  8. Defining environment variables

  9. Defining endpoints

  10. Defining kubernetes resources

Additional Resources