Sign inSign up

wukongcloud/kubernetes-api

By wukongcloud

Updated over 4 years ago

Image
0

956

wukongcloud/kubernetes-api repository overview

Kubernetes API

使用 gin 框架开发的 kubernetes api 服务,可用于快速集成开发基于 kubernetes 的管理平台。

Go version License

特性

  • RESTful API 设计规范
  • Gin 一款高效的 golang web 框架
  • Validator 请求参数校验, 版本 V9
  • Viper 配置管理工具, 支持多种配置文件类型。

中间件

  • Kubeconfig Kubeconfig 中间件 -- 请求 kubernetes 的路由自动注入 kubeconfig 相关 context
  • AccessLog 请求日志中间件 -- 每次请求的路由、IP自动写入日志
  • RateLimiter 访问速率限制中间件 -- 限制访问流量
  • Exception 全局异常处理中间件 -- 使用golang recover特性, 捕获所有异常, 保存到日志, 方便追溯

Kubernetes Resources

  • namespace
  • deployment
  • service
  • ingress
  • secret
  • event
  • pods
  • networkPolicy
  • daemonSet [todo]
  • job/cronjob [todo]
  • rbac [todo]
  • Istio
    • Gateway
    • VirtualService
    • DestinationRule
    • ServiceEntry

Tag summary

Content type

-

Digest

Size

24.8 MB

Last updated

almost 5 years ago

docker pull wukongcloud/kubernetes-api