Sign inSign up

inwinstack/kg-ui

By inwinstack

•Updated over 8 years ago

Provides Kubenconfig Generator with a web UI.

Image
0

1.2K

inwinstack/kg-ui repository overview

⁠Kubeconfig Generator Web UI

Provides Kubenconfig Generator with a web UI.

⁠Quick Start

Run with Docker:

$ docker run -dti -p 9090:9090 \
  -e KG_APISERVER_URL=<yout backend server url> \
  --name kg-ui \
  inwinstack/kg-ui:v0.1.0

The environment you can set:

ENVDescription
KG_APISERVER_URLThe Kubeconfig Generator backend server URL.(Default: http://localhost:8080⁠)
KG_UI_PORTThe Kubeconfig Generator web UI expose port.(Default: 9090)

⁠Building from Source

Fisrst, set the environment with Kubeconfig Generator web UI:

# default: http://localhost:8080
export KG_APISERVER_URL=http://localhost:8080
# default: 9090
export KG_UI_PORT=9090

Or you can modified the config/index.js file:

// Modified the value with Kubeconfig Generator backend server URL
proxyTable: {
  '/login': {
    target: process.env.KG_APISERVER_URL || 'http://localhost:8080',
    changeOrigin: true,
    ws: true
  },
}

// Modified the value with Kubeconfig Generator web UI expose port
port: process.env.KG_UI_PORT || 9090

And then install dependencies and run:

$ npm install
$ npm run dev
DONE  Compiled successfully in 475ms

I  Your application is running here: http://0.0.0.0:9090

Tag summary

Content type

Image

Digest

Size

8.3 MB

Last updated

over 8 years ago

docker pull inwinstack/kg-ui