Skip to content

okteto.yml manifest

The okteto.yml file is the manifest used by Okteto to define and configure development environments.^[400-devops-01-concepts-of-software-development-okteto.md] It serves as a central configuration file that specifies how the application is built, deployed, and run within a Kubernetes cluster.^[400-devops-01-concepts-of-software-development-okteto.md]

Purpose

The manifest automates the setup of the development environment by defining key operations such as building images and deploying dependencies.^[400-devops-01-concepts-of-software-development-okteto.md] It allows developers to codify the steps required to run their applications directly in a Kubernetes cluster.

Key Commands

The Okteto CLI uses specific sections of the manifest to execute corresponding commands:

  • okteto build: Builds and pushes the images defined in the build section of the manifest^[400-devops-01-concepts-of-software-development-okteto.md].
  • okteto deploy: Executes locally the list of commands specified in the deploy section of the manifest^[400-devops-01-concepts-of-software-development-okteto.md].
  • okteto init: Automatically generates an okteto.yml manifest for the project^[400-devops-01-concepts-of-software-development-okteto.md].

Workflow

Setting up a development environment with Okteto typically involves using the manifest to handle the infrastructure and runtime configuration. The standard workflow includes deploying the application code and then using okteto up to launch the development container, effectively syncing the local workspace with the remote environment^[400-devops-01-concepts-of-software-development-okteto.md].

Sources

^[400-devops-01-concepts-of-software-development-okteto.md]