Skip to main content
Version: 1.50

Development Containers

Development Containers let you develop your application in Kubernetes with hot reload and a debugger. When you run okteto up, File Sync keeps your local code synchronized with the Development Container running in your cluster.

Development Container architecture with File Sync

In this example, okteto up replaces the api Kubernetes Deployment with a development copy, a Deployment called api-okteto, with these changes:

  • Okteto overrides the container configuration of api-okteto with the values of your Development Container. For example, it replaces the production image with one that has your development tools.
  • A file synchronization service keeps your local filesystem and your Development Container in sync, in both directions.
  • Okteto forwards ports over SSH, so you can reach the services of your cluster on localhost.

Your Development Container inherits the manifest of the original api Deployment, so it uses the same service account, environment variables, secrets, volumes, and sidecars. You develop in the same conditions your application runs in production.

Development Containers work with applications in any language. Start with the guide for yours:

The Okteto tutorials have more examples of how to build, deploy, test, and develop applications on Okteto with different frameworks and deployment tools.