guber

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

guber

Guber is a tool to write application-IP mapping from nacos into local hosts.

Why

In kubernate, your application's ip changed very time new deployment push and you want to access your application directly, bypass the gateway authentication.

configuration

log:
  level: debug
service:
  - names:
      - "app-service"
      - "app-data"
    env: dev
    nacos:
      addr: http://127.0.0.1:8848
      username: nacos
      password: nacos
    keep:
      # keep router tag & value third
      - key: "router"
        value: "third"
        # keep dubbo tag
      - key: "dubbo"
        value: ""
  - names:
      - "backen-service"
    env: test
    nacos:
      addr: http://10.0.0.1:8848
      username: nacos
      password: nacos

It will append some address-ip into hosts file,like:

 192.168.8.19 app-service.dev backend-service.dev
 192.168.8.20 app-data.dev 
 10.0.19.1 backend-service.test 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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