Adding components to a devfile

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

  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 a kubernetes or openshift component to a devfile

  5. Adding container components to a devfile

  6. Specifying persistent storage

  7. Limiting resources usage

  8. Defining environment variables

  9. Defining endpoints

  10. Defining Kubernetes resources

Additional resources