Coder Social home page Coder Social logo

hasura / kubeformation Goto Github PK

View Code? Open in Web Editor NEW
86.0 8.0 3.0 240 KB

Create declarative cluster specifications for your managed Kubernetes vendor (GKE, AKS)

Home Page: https://kubeformation.sh

License: Apache License 2.0

Go 92.19% Makefile 3.30% Shell 2.50% Dockerfile 2.01%
kubernetes gke aks azure google-cloud declarative templates google-deployment-manager azure-resource-manager

kubeformation's Introduction

kubeformation

Create declarative specifications for your managed Kubernetes cloud vendor (GKE, AKS).

GoDoc Chat on Discord Follow on Twitter

Kubeformation Diagram

Motivation

With Kubernetes, it becomes possible to start making everything about your application declarative. As cloud vendors start providing managed Kubernetes services, provisioning a Kubernetes cluster via the vendor’s API becomes declarative as well.

Kubeformation is a simple web UI and CLI that helps you create “Google Deployment manager” or “Azure Resoure Manager” templates which are a little painful to create by hand.

Once you have this file, you can run your cloud vendor CLI on it to provision your cluster. You can edit this file to add vendor specific configuration too.

Usage

  • Write cluster spec. [docs]
  • Use the kubeformation CLI to generate template. [docs]
  • Follow provider specific instructions to create the cluster. [docs]

Example

Here's a spec that defines a Kubernetes cluster: cluster.yaml

version: v1
name: cluster-name
provider: gke
k8sVersion: "1.9"
nodePools:
- name: db-pool
  type: n1-standard-1
  size: 1
  labels:
    app: postgres
- name: backend-pool
  type: n1-standard-2
  size: 2
  labels:
    app: backend
volumes:
- name: postgres
  size: 10

kubeformation can read this file and generate Google Cloud Deployment Manager template, which can then be used with gcloud command to create the GKE cluster. This is a declarative template that can be used to further do create or modify the cluster.

$ kubeformation -f cluster.yaml -o templates

Then, use gcloud CLI to create the deployment. [docs]

$ gcloud deployment-manager deployments create my-cluster --config templates/gke-cluster.yaml

NOTE: kubeformation is exclusively meant for managed Kubernetes providers. The following providers are currently supported:

  1. Google Kubernetes Engine (GKE)
  2. Azure Container Service (AKS)

Installation

Download CLI for your platform from the releases page, add it to PATH and give execute permissions.

$ chmod +x kubeformation

Docs

Read complete docs here.

FAQ

  • Why cloud provider specific information, such as zone/region/location etc. does not appear in the cluster spec?
    • The purpose of Kubeformation is to bootstrap a cloud provider specific template that you can later modify according to your needs.

Roadmap

Kubeformation is open to evolution. Current goal is to support all managed Kubernetes vendors that support declarative specification.

  • EKS support (#10)
  • Other providers (#11)

Contributing

Kubeformation is an open source project licensed under Apache 2.0. Checkout the contributing guide to get started.

Maintainers

Current maintainers: @shahidh_k, @arvishankar, @JaisonTitus.

kubeformation's People

Contributors

arvi3411301 avatar shahidhk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubeformation's Issues

Support for Amazon EKS

EKS is in "closed preview". We have the implementation internally but we can't put anything in the public domain until EKS becomes generally available per their T&C. Will update once that happens.

Add FAQ to docs

Add a FAQ section describing

  • Why provider specific information, such as zone/region/location etc. does not find place in the cluster spec

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.