Skip to content

ifbyol/divert-showcase

 
 

Repository files navigation

Okteto Divert Showcase

Okteto Divert allows you to spin up Development Environments that include only the services you're actively working on, while routing all other service traffic to a shared environment. This dramatically reduces infrastructure cost and speeds up environment startup—especially for large microservice applications. 👉 Learn more about Divert in our docs

This repository contains examples of the different patterns that you can leverage when using Divert. Our goal is to use this examples to showcase the different architectural patterns that you can implement with Okteto Divert.

Note: These examples require Okteto Platform v1.30.1 or later

Scenarios

  1. Chain of Services via Ingress: Demonstrates how to use divert when you call all your services via a single shared ingress.
  2. Chain of Services via Service Discovery: Shows how to use Divert when services talk to each other using Kubernetes’ internal DNS (service-name.namespace.svc.cluster.local).
  3. Producer-Consumer Wit Kafka: Demonstrates Divert in an event-driven architecture using Kafka to pass messages between services.
  4. Producer-Consumer Wit SQS: Demonstrates Divert in an event-driven architecture using SQS to pass messages between services.
  5. Movies App: A real-world example where a frontend app interacts with multiple backend services. This shows how Divert enables developing just the frontend (or one backend) while reusing the rest.

Getting Started with Divert

Here’s how to run a sample locally using Okteto Divert:

  1. Create a namespace called staging. This is the namespace that will hold the shared environment. If you prefer to use a different name, update the value on the .env file of the sample
  2. On the staging namespace, deploy the full application: okteto deploy -n=staging
  3. Verify that the application works by accessing its endpoints
  4. On your personal namespace, only deploy the services that you want to develop on (e.g okteto deploy -f okteto.serviceb.yaml)
  5. From your personal namespace, access the endpoints. Notice how the responses change between shared and diverted services.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 89.6%
  • Dockerfile 6.5%
  • HCL 3.9%