Skip to content

wuhenggongzi/cluster-inspection-vue

 
 

Repository files navigation

集群巡检项目前端

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

集群名称映射

store.js

// 集群名称映射,需要与后端保持一致
const clusterNameMap = {
  '': '',
  '': '',
}

config.yaml

clusters:
  - name: production-cluster
    kubeconfig: ./production-cluster.yaml
    #prometheus地址
    prometheus: http://127.0.0.1:9091
    #prometheus token,如果prometheus开启了认证则需要填写,否则为空
    prometheus_token: ""
    #如果配合前端项目使用,集群名称映射的名字需要与这里一致
    ClusterName: ""

  - name: staging-cluster
    kubeconfig: ./staging-cluster.yaml
    prometheus: http://127.0.0.1:9090
    prometheus_token: ""
    #如果配合前端项目使用,集群名称映射的名字需要与这里一致
    ClusterName: ""
database:
  user: ""
  password: ''
  host: ""
  port: ""
  dbname: ""

About

巡检平台前端

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 86.8%
  • JavaScript 11.2%
  • CSS 1.8%
  • HTML 0.2%