wayne

module
Version: v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0

README

Wayne

Build Statue Build Tag License Go Report Card

English | 中文

Wayne is a universal, web-based Kubernetes multi-cluster management platform. It reduces service access costs by visualizing Kubernetes object template editing. With a complete permission management system and adapting to multi-tenant scenarios, it is a publish platform suitable for enterprise-level clusters.

Wayne has been serving 360 search on a large scale, carrying most of the online services, stably managing nearly a thousand applications, tens of thousands of containers, running for more than two years, withstood the test of production.

Why Named Wayne:Most of the projects developed by the team of 360 ​​Search Private Cloud are named after DC comics, and Wayne is no exception. "Wayne" is the name of the famous superhero, Batman Bruce Wayne.

Dashboard

Demo

https://demo.360yun.org

Features

  • Permissions management based on RBAC (Role based access control): Users are associated with departments and projects through roles, and department roles allow operations department resources, and project roles allow operation of project resources, which is more suitable for multi-tenant scenarios.
  • Simplified the process of kubernetes object creation: Provides a basic Kubernetes object configuration file addition method, while supporting advanced mode to directly edit Json/Yaml files to create Kubernetes objects.
  • LDAP/OAuth 2.0/DB Multiple login mode support: Integrate enterprise-level LDAP login and DB login mode, and also enable OAuth2 login.
  • Support multi-cluster, multi-tenancy: You can manage multiple Kubernetes clusters at the same time, and add specific configurations to each other, making it easier for multi-cluster and multi-tenant management.
  • Provide a complete auditing module: Wayne provides a complete auditing module (really named audit) for each operation, tracking for operational history, and support for user-defined webhook.
  • Provide APIKey-based open interface calls: Users can apply for related APIKeys and manage their own departments and projects. Operation and maintenance personnel can also apply for global APIKey for global management of specific resources.
  • Keep a complete release history: Users can easily find any historical release, easily roll back, and update Kubernetes resources based on a specific historical version.
  • Complete resource reporting: Users can easily access reports and charts of resource usage and historical online frequency (days) and other basic data.
  • Provide a Web shell based on strict permission checking: Users can enter the published Pod through the Web shell to operate, with full permission verification.
  • Provide an in-site notification system: facilitates administrators to push clusters, service notifications, and troubleshooting reports.

Architecture

The whole system adopts the separation of front and back ends, in which the front end uses Angular framework for data interaction and display, and the Ace editor is used for Kubernetes resource template editing. The backend uses the Beego framework for data interface processing, Client-go to interact with Kubernetes, and data for MySQL storage. Architecture

Component

  • Web UI:Provide complete business development and platform operation and maintenance experience.
  • Worker:Extend a range of message queue-based features, such as auditing components such as Audit and Webhooks.

Dependence

Quickly Start

  • Clone
$ go get github.com/Qihoo360/wayne
  • Start Wayne

    Start server by docker-compose at Wayne project.

$ docker-compose -f ./hack/docker-compose/docker-compose.yaml up

With the above command, you can access the local Wayne from http://127.0.0.1:4200, the default administrator account admin:admin.

Note: After Wayne is started, you need to configure information such as cluster and Namespace for normal use. See details Cluster Configuration

Document

Directories

Path Synopsis
src
backend/client
Proxy is a package responsible for doing common operations on kubernetes resources like UPDATE DELETE CREATE GET deployment and so on.
Proxy is a package responsible for doing common operations on kubernetes resources like UPDATE DELETE CREATE GET deployment and so on.
backend/controllers/openapi
Package openapi Wayne OpenAPI Document wayne 开放 API (以下简称 openapi)是一组便于开发者调试、第三方工具开发和 CI/CD 的开放数据接口。
Package openapi Wayne OpenAPI Document wayne 开放 API (以下简称 openapi)是一组便于开发者调试、第三方工具开发和 CI/CD 的开放数据接口。
backend/database/generatedata
generate init data sql, for manual init db
generate init data sql, for manual init db
backend/routers
@APIVersion 1.0.0 @Title Wayne API @Description List接口查询技巧:<br> 1.按照字段排序:增加sortby查询参数。
@APIVersion 1.0.0 @Title Wayne API @Description List接口查询技巧:<br> 1.按照字段排序:增加sortby查询参数。
backend/util/snaker
Package snaker provides methods to convert CamelCase names to snake_case and back.
Package snaker provides methods to convert CamelCase names to snake_case and back.

Jump to

Keyboard shortcuts

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