Coder Social home page Coder Social logo

k8s's Introduction

Kubernetes GoFrame

介绍

kubernetes GO 客户端与GoFrame提供接口对kubernetes相关资源的管理

完成功能

  1. pod容器列表
  2. pod websocket
  3. deployment 列表
  4. namespace 列表
  5. service 列表

运行

git clone https://github.com/Michael754267513/k8s.git

修改配置文件 admin.conf 为kubernetes的config文件,一般是 ~/.kube/config文件

运行 go build main.go # 自动下包建议设置一个代理 export GO111MODULE=on GOPROXY=https://goproxy.cn;

接口

SERVER DOMAIN ADDRESS METHOD ROUTE HANDLER MIDDLEWARE
default default :80 ALL /kubernetes/deployment/list k8s/kubernetes/deployment.(*DeployMentController).List router.MiddlewareCORS
--------- --------- --------- -------- ----------------------------- -------------------------------------------------------- -----------------------
default default :80 ALL /kubernetes/namespace/list k8s/kubernetes/namespace.(*NameSpaceController).List router.MiddlewareCORS
--------- --------- --------- -------- ----------------------------- -------------------------------------------------------- -----------------------
default default :80 ALL /kubernetes/pod/list k8s/kubernetes/pod.(*podws.PodController).List router.MiddlewareCORS
--------- --------- --------- -------- ----------------------------- -------------------------------------------------------- -----------------------
default default :80 ALL /kubernetes/pod/websocket k8s/kubernetes/pod.(*podws.PodWSController).Websocket router.MiddlewareCORS
--------- --------- --------- -------- ----------------------------- -------------------------------------------------------- -----------------------
default default :80 ALL /kubernetes/service/list k8s/kubernetes/service.(*ServiceController).List router.MiddlewareCORS
--------- --------- --------- -------- ----------------------------- -------------------------------------------------------- -----------------------

k8s's People

Contributors

michael754267513 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.