GithubHelp home page GithubHelp logo

venezia / cma-vmware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samsung-cnct/cma-vmware

0.0 3.0 0.0 1.53 MB

A specific implementation of the cluster-manager-api targeting cluster-api-provider-ssh

License: Apache License 2.0

HTML 0.71% Makefile 5.30% Dockerfile 2.14% Shell 8.14% Go 82.31% Smarty 1.40%

cma-vmware's Introduction

Introduction

cma-vmware is an implementation of the cluster-manager-api. cluster-manager-api is a facade in front of Kubernetes (k8s), Helm, and other tools used to build and manage k8s clusters in both on-prem and cloud enviroments (e.g. AWS, Azure, etc.) cma-vmware is an implementation for on-prem environments and is based on cluster-api-provider-ssh.

Quickstart

This guide assumes you have already deployed cluster-api-provider-ssh according to its instructions.

First install tiller and cert-manager if they have not been already:

export KUBECONFIG=<path/to/kubeconfig>
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
helm install --tiller-namespace=kube-system --name cert-manager --namespace kube-system stable/cert-manager

Then install cma-vmware:

helm install --tiller-namespace=kube-system --name cma-vmware --namespace cma-vmware

cma-vmware contains a built-in GUI which can be useful in determining the structure of the API and submitting requests. See the helm values file and documentation for your k8s environment to determine how to access it.

Development

To download, build, and run cma-vmware locally

On OSX:

go get github.com/samsung-cnct/cma-vmware
cd $GOPATH/src/github.com/samsung-cnct/cma-vmware
make -f build/Makefile cmavmw-bin-darwin
./cma-vmware

On Linux, replace the make command above with this one:

make -f build/Makefile cmavmw-bin-linux-amd64

To submit requests for testing purposes

Either use the GUI:

open http://127.0.0.1:9020/swagger-ui/#/

Use curl:

curl 127.0.0.1:9020/api/v1/cluster -X POST -d @dewdrops/cma.json
curl 127.0.0.1:9020/api/v1/cluster?name=dewdrops -X DELETE

Or use another http client.

To change the API and regenerate golang bindings

vi api/api.proto
make -f build/Makefile generators

cma-vmware's People

Contributors

alika avatar davidewatson avatar joejulian avatar lostlivio avatar oneilcin avatar philoserf avatar venezia avatar

Watchers

 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.