pervrosen / okteto

Local development experience for Kubernetes apps

Home Page:https://okteto.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Okteto: A Tool to Develop Applications in Kubernetes

GitHub release CircleCI Scope Apache License 2.0

CII Best Practices

Overview

Kubernetes has made it very easy to deploy applications to the cloud at a higher scale than ever, but the development practices have not evolved at the same speed as application deployment patterns.

Today, most developers try to either run parts of the infrastructure locally or just test these integrations directly in the cluster via CI jobs or the docker build/redeploy cycle. It works, but this workflow is painful and incredibly slow.

okteto accelerates the development workflow of Kubernetes applications. You write your code locally and okteto detects the changes and instantly updates your Kubernetes applications.

How it works

Okteto allows you to develop inside a container. When you run okteto up your Kubernetes deployment is replaced by a development container that contains your development tools (e.g. maven and jdk, or npm, python, go compiler, debuggers, etc). This development container can be any docker image.

In addition to that, okteto up will:

  1. Keep your local code changes synchronized with the development container.
  2. Start port forwards, so you can access your cluster services via localhost or connect a remote debugger.
  3. Give you a remote terminal to your development container, so you can build, test, and run your application as you would from a local terminal.

All of this (and more) can be configured via a simple yaml manifest.

The end result is that the remote cluster is seen by your IDE and tools as a local filesystem/environment. You keep writing your code on your local IDE and as soon as you save a file, the change goes to the development container and your application instantly updates (taking advantage of any hot-reload mechanism you already have). This whole process happens in an instant. No docker images need to be created and no Kubernetes manifests need to be applied to the cluster.

Okteto

Why Okteto

okteto has several advantages when compared to more traditional development approaches:

  • Fast inner loop development: build and run your application using your favorite tools directly from your development container. Native builds are always faster than the docker build/redeploy cycle.
  • Production-like development environment: your development container reuses the same variables, secrets, sidecars, volumes, etc... than your original Kubernetes deployment. Realistic environments eliminate integration issues.
  • Replicability: development containers eliminate the need to install your dependencies locally, everything is pre-configured in your development image.
  • Unlimited resources: get access to the hardware and network of your cluster when developing your application.
  • Deployment independent: okteto decouples deployment from development. You can deploy your application with kubectl, Helm, a serverless framework, or even a CI pipeline and use okteto up to develop it. This is especially useful for cloud-native applications where deployment pipelines are not trivial.
  • Works anywhere: okteto works with any Kubernetes cluster, local or remote. okteto is also available for macOS, Linux, and Windows.

Getting started

All you need to get started is to install the Okteto CLI and have access to a Kubernetes cluster.

You can also use okteto with Okteto Cloud, a Kubernetes Namespace as a Service platform where you can deploy your Kubernetes applications and development containers for free.

Super Quick Start

  • Deploy your application on Kubernetes.
  • Run okteto init from the root of your git repository to inspect your code and generate your Okteto manifest. The Okteto manifest defines your development container.
  • Run okteto up to deploy your development container.

We created a few guides to help you get started with okteto and your favorite programming language.

Useful links

Roadmap and Contributions

okteto is written in Go under the Apache 2.0 license - contributions are welcomed whether that means providing feedback, testing a new feature, or hacking on the source.

How do I become a contributor?

Please see the guide on contributing.

Roadmap

We use GitHub issues to track our roadmap. A milestone is created every month to track the work scheduled for that time period. Feedback and help are always appreciated!

Stay in Touch

Got questions? Have feedback? Join the conversation in our #okteto Slack channel! If you don't already have a Kubernetes slack account, sign up here.

Follow @OktetoHQ on Twitter for important announcements.

Or get in touch with the maintainers:

About Okteto

okteto is licensed under the Apache 2.0 License.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to hello@okteto.com.

About

Local development experience for Kubernetes apps

https://okteto.com

License:Apache License 2.0


Languages

Language:Go 98.8%Language:Shell 0.7%Language:Dockerfile 0.2%Language:Makefile 0.2%