Code Monkey home page Code Monkey logo

k8smanagerapi's Introduction

建表语句

CREATE TABLE `helm_chart` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
	`name` VARCHAR(255) DEFAULT NULL,
  `file_name` VARCHAR(255) DEFAULT NULL,
  `icon_url` VARCHAR(255) DEFAULT NULL,
  `version` VARCHAR(255) DEFAULT NULL,
  `describe` VARCHAR(255) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_helm_chart_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2291 CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE `k8s_event` (
                             `id` int(11) NOT NULL AUTO_INCREMENT,
                             `name` varchar(255) DEFAULT NULL,
                             `kind` varchar(255) DEFAULT NULL,
                             `namespace` varchar(255) DEFAULT NULL,
                             `rtype` varchar(255) DEFAULT NULL,
                             `reason` varchar(255) DEFAULT NULL,
                             `message` varchar(255) DEFAULT NULL,
                             `event_time` datetime DEFAULT NULL,
                             `cluster` varchar(64) DEFAULT NULL,
                             `created_at` datetime DEFAULT NULL,
                             `updated_at` datetime DEFAULT NULL,
                             `deleted_at` datetime DEFAULT NULL,
                             PRIMARY KEY (`id`),
                             KEY `idx_k8s_event_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2291 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE `node` (
                        `id` int(11) NOT NULL AUTO_INCREMENT,
                        `cluster` VARCHAR(255) DEFAULT NULL,
                        `host_name` VARCHAR(255) DEFAULT NULL,
                        `ip` VARCHAR(64) DEFAULT NULL,
                        `master` TINYINT(1) DEFAULT NULL,
                        `cpu` int(32) DEFAULT NULL,
                        `memory` VARCHAR(255) DEFAULT NULL,
                        `system` VARCHAR(255) DEFAULT NULL,
                        `os_image` VARCHAR(255) DEFAULT NULL,
                        `arch` VARCHAR(255) DEFAULT NULL,
                        `kernel_version` VARCHAR(255) DEFAULT NULL,
                        `kubelet_version` VARCHAR(255) DEFAULT NULL,
                        `created_at` datetime DEFAULT NULL,
                        `updated_at` datetime DEFAULT NULL,
                        `deleted_at` datetime DEFAULT NULL,
                        PRIMARY KEY (`id`),
                        KEY `idx_node_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2291 CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE `pod_info` (
                            `id` int NOT NULL AUTO_INCREMENT,
                            `cluster` VARCHAR(255) DEFAULT NULL,
                            `pod_name` VARCHAR(255) DEFAULT NULL,
                            `host_ip` VARCHAR(64) DEFAULT NULL,
                            `pod_ip` VARCHAR(64) DEFAULT NULL,
                            `status` VARCHAR(64) DEFAULT NULL,
                            `creation_time` datetime DEFAULT NULL,
                            `created_at` datetime DEFAULT NULL,
                            `updated_at` datetime DEFAULT NULL,
                            `deleted_at` datetime DEFAULT NULL,
                            PRIMARY KEY (`id`),
                            KEY `idx_pod_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2291 CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE `user` (
                        `id` int NOT NULL AUTO_INCREMENT,
                        `username` varchar(64) COLLATE utf8mb4_general_ci NOT NULL,
                        `password` varchar(128) COLLATE utf8mb4_general_ci NOT NULL,
                        `created_at` datetime DEFAULT NULL,
                        `updated_at` datetime DEFAULT NULL,
                        `deleted_at` datetime DEFAULT NULL,
                        PRIMARY KEY (`id`) USING BTREE,
                        UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE `workflow` (
                            `id` int NOT NULL AUTO_INCREMENT,
                            `name` varchar(32) COLLATE utf8mb4_general_ci NOT NULL,
                            `namespace` varchar(128) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `replicas` int DEFAULT NULL,
                            `deployment` varchar(128) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `service` varchar(128) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `ingress` varchar(128) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `type` varchar(128) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `cluster` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL,
                            `created_at` datetime DEFAULT NULL,
                            `updated_at` datetime DEFAULT NULL,
                            `deleted_at` datetime DEFAULT NULL,
                            PRIMARY KEY (`id`) USING BTREE,
                            UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

k8smanagerapi's People

Stargazers

 avatar

Watchers

李彦杰 avatar

k8smanagerapi's Issues

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.