Create declarative specifications for your managed Kubernetes cloud vendor (GKE, AKS).
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.
kubeformationCLI to generate template. [docs]
Here’s a spec that defines a Kubernetes cluster:
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
gcloud CLI to create the deployment. [docs]
$ gcloud deployment-manager deployments create my-cluster --config templates/gke-cluster.yaml
kubeformation is exclusively meant for managed Kubernetes providers. The
following providers are currently supported:
Download CLI for your platform from the releases
page, add it to
PATH and give
$ chmod +x kubeformation
Read complete docs here.
Kubeformation is open to evolution. Current goal is to support all managed Kubernetes vendors that support declarative specification.