go-register-server

command module
v0.0.0-...-290676b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

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

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
k8s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL