Code Monkey home page Code Monkey logo

dubbo-kubernetes's Introduction

The Dubbo Kubernetes Integration

⚠️ This is still an experimental version. ⚠️

Build codecov license

This repository contains libraries and tools for creating and deploying Dubbo applications in any Kubernetes environment, i.e. on Kubernetes, Aliyun ACK, etc.

Prerequisites:

  • Ensure you have Go installed, version 1.20 or higher.
  • Make sure you install kubectl.
  • Ensure you have Dubboctl installed.

Quick Start

Create a Dubbo application

Use dubboctl create to create a project template.

dubboctl create -l java

This should generate a simple project with a demo service properly configured and is ready to run.

For java developers, it's recommended to use start.dubbo.apache.org or IntelliJ IDEA plugin to generate more complicated templates.

Deploy application to Kubernetes

Before deploying the application, let's install Nacos, Zookeeper, Prometheus and other components necessary for running a Dubbo application or microservice cluster.

dubboctl install --profile=demo # This will install Nacos, Prometheus, Grafana, Admin, etc.

Next, build your application as docker image and deploy it into kubernetes cluster with dubboctl deploy, it will do the following two steps:

  1. Build your application from source code into docker image and push the image to remote repository.
  2. Generate all the kubernetes configurations (e.g., deployments, services, load balancers) needed to run your application on vanilla Kubernetes.
dubboctl deploy --out=deployment.yml

Finally, apply manifests into kubernetes cluster.

kubectl apply -f deployment.yml

Monitor and manage your application

We already have the application up and running, now it's time to continuously monitor the status or manage the traffics of our applications.

Admin

Run the following command and open http://localhost:38080/admin/ with your favourite browser.

dubboctl dashboard admin

Admin Console

Admin Grafana

Tracing

dubboctl dashboard zipkin

Traffic Management

Please refer to our official website to learn the traffic policies in Dubbo with some well-designed tasks.

  • Timeout
  • Accesslog
  • Region-aware traffic split
  • Weight-based traffic split
  • Circuit breaking
  • Canary release

dubbo-kubernetes's People

Contributors

nzomkxia avatar chickenlj avatar albumenj avatar beiwei30 avatar majinkai avatar keran213539 avatar haoyann avatar sjmshsh avatar mfordjody avatar dependabot[bot] avatar htynkn avatar kezhenxu94 avatar lovepoem avatar sunbufu avatar panxiaojun233 avatar biyuhao avatar sduwys avatar 2456868764 avatar chenzhiguo avatar wolf427 avatar dmwangnima avatar kexianjun avatar seriouszyx avatar wudong5 avatar ev1lquark avatar kimmking avatar hrsstd avatar asa3311 avatar tzr164 avatar cnjxzhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.