GithubHelp home page GithubHelp logo

wonderflow / velacp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubevela/velaux

0.0 2.0 1.0 8.28 MB

KubeVela control plane

License: Apache License 2.0

Go 24.56% Makefile 0.71% JavaScript 2.84% TypeScript 67.49% Less 2.11% Shell 0.23% EJS 1.82% Dockerfile 0.24%

velacp's Introduction

velacp

KubeVela control plane to manage hybrid multi-cloud clusters, provide plug-and-play capability management, create stream-line application delivery pipelines.

Architecture

This project is based on the following tech stacks:

  • grpc
  • mongodb
  • ant-design-pro

alt

Quickstart

Build cli and server binaries:

mkdir -p _bin/
make

Setup a mongodb instance. Check the official doc.

Start velacp server:

$ _bin/velacp server \
    --db-address=${MONGO_ADDRESS} \
    --db-name=${MONGO_DATABASE} \
    --db-user=${MONGO_USER} \
    --db-password=${MONGO_PASSWORD}
1.612156394424596e+09	info	grpcapi/grpcapi.go:57	grpc server is running on	{"port": 9000}
1.612156394424962e+09	info	grpcapi/grpcapi.go:81	http server is running on	{"port": 9001}

Use velactl to add catalogs

$ _bin/velactl catalog put test --desc "First catalog"
$ _bin/velactl catalog put test2 --desc "Second catalog"

Use velactl to list catalogs:

$ _bin/velactl catalog list
{
  "catalogs": [
    {
      "id": "ca11c2b3-fdb5-4fac-9888-3085c883ed70",
      "name": "test",
      "desc": "First catalog",
      "created_at": 1612124041,
      "updated_at": 1612124041
    },
    {
      "id": "8274ccb8-3b8b-4650-84c5-1c721d839bd9",
      "name": "test2",
      "desc": "Second catalog",
      "created_at": 1612124041,
      "updated_at": 1612124041
    }
  ]
}

(Optional) Verfy the data in mongodb:

alt

Start dashboard

Run:

$ cd ui/
$ yarn
... download dependencies ...

$ yarn start
Starting the development server...

alt

Catalog Structure

The catalog repo has a standard structure format in order to be managed in Vela Control Plane.

See catalog-example repo for more details.

Setup catalog

Add a catalog:

alt

Sync it:

alt

Setup environment

Add an environment with the package predefined in it:

alt

Input capabilities parameters via rendered forms

When creating an application, select the environment with the packages included:

alt

Then the json schema for the capabilities will be rendered to take user input:

alt

velacp's People

Contributors

hongchaodeng avatar

Watchers

James Cloos avatar  avatar

Forkers

web-logs2

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.