carbon

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 2 Imported by: 0

README

Carbon is a package manager for Kubernetes. It allows to operate with your application along with Kubernetes manifests as a holistic package.

You are able to do with a Carbon package:

  • develop
  • build
  • assign version (Docker tags)
  • distribute (via Docker registries)
  • install to Kubernetes
  • and many other maintenance operations

Carbon packages are based on Docker images and don't impose any additional requirements or restrictions. Thus you may use your favorite Docker registry in order to store, share and install it to your Kubernetes cluster.

If you want to try Carbon, please check this documentation page: Get started with Carbon

How Carbon works

Carbon package is a Docker image with additional metadata stored at the image labels. The most important part of the metadata is a Kubernetes manifest templates, which are converted to Kubernetes manifests on the installation stage.

Usage of Docker labels allows us to avoid downloading the whole image for the installation. Carbon just reads a package metadata directly from a registry, builds a Kubernetes manifest based on the templates and applies this manifest to a Kubernetes cluster. Based on the manifest, Kubernetes downloads specified Docker images from a registry and launches Pods.

Content

TODO: codestyle, line length

Limitations

  • All resources of a package will be deployed to the same Kuberenetes namespace. If you need to deploy resources to different namespaces, we recommend splitting such package to different packages
  • If a package has global resources (like ClusterRole or CustomResourceDefinition), it's your responsibility to avoid multiple installations of your package in different Namespaces, especially when you use cluster scope (it may be improved in the future).
  • You are forced to build one and only one Docker image in the scope of a one Carbon package:
    • Even if you don't have any data but Kuberenet manifests, you must build a docker image. For such cases recommend to use a scratch base image. More defails can be found at Building a Carbon package without an application code
    • When you want to build two (or more) Docker images in scope of a single Carbon package, you have two options: to build a single Docker image and run it with different commands, or to split your codebase into different Carbon packages.

Roadmap

  • carbon init - create package Carbon configs for a new package
  • carbon verify - verify Carbon package configuration before running carbon build
  • carbon config-upgrade - upgrade a package config to the latest version
  • version constraints and dependencies - provide a possibility to define dependencies among Carbon packages and to install a package only when all version constraints are met

Community

TODO

Contribution

While Carbon is an important tool for our engineering department, it isn't a major business goal. Thus we're going to add the features matters for us.

If you need any feature which isn't implemented yet, feel free to propose MR. In the extension of this tool, we count on the community.

Development environment

You will need:

  • Any Unix system (Linux, OSX, FreeBSD). Some tests use unix shell commands, thus you will be unable to run test at Windows
  • Minikube
  • Docker

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL