Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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.

License

Notifications You must be signed in to change notification settings

choerodon/go-register-server

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published