Giter Club home page Giter Club logo

choerodon / go-register-server Goto Github PK

View Code? Open in Web Editor NEW
13.0 5.0 16.0 8.06 MB

The microservice registration is implemented by monitoring the state changes of the k8s pod, and pull the interface in the spring cloud eureka client service list.

Home Page: http://choerodon.io

License: Apache License 2.0

Smarty 0.85% Go 34.37% Dockerfile 0.45% CSS 62.49% HTML 1.84%
go spring-boot spring-cloud spring springcloud choerodon spring-cloud-eureka c7nf

go-register-server's Introduction

Go Register Server

The microservice registration center is implemented by the go programming language, by tightly depend on the Kubernetes, the microservice registration is implemented by monitoring the state changes of the k8s pod, and adapt to the interface of the spring cloud eureka client to fetch service registry. Each microservice fetch online and healthy micro-services list from the registration center , providing service governance in Choerodon, and sending service up and down events.

Feature

  • service discovery
  • send up down event

Requirements

  1. Configuring the file of Kubeclient config

  2. Each microservice pod must have the following three labels。

    choerodon.io/service        (Microservice name)
    choerodon.io/version        (version)
    choerodon.io/metrics-port   (metrics-port)
    

If your service has contextPath, you can specify by choerodon.io/context-path

Installation and Getting Started

go run main.go \
--kubeconfig=<kube config file>

Dependencies

  • Go 1.9.4 and above
  • Dep

Links

Contribute

We welcome your input! If you have feedback, please submit an issue. If you'd like to participate in development, please read the documentation of contribution and submit a pull request.

Support

If you have any questions and need our support, reach out to us one way or another.

go-register-server's People

Contributors

azengqiang avatar crockitwood avatar devane001 avatar devil-scp avatar flyleft avatar longhe1996 avatar superlee007 avatar timebye avatar vinkdong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.