The first step on this journey was the Habitat operator for Kubernetes which my colleague, Lili, already wrote about. The second part of this project —the focus of this post— is to make it easier to deploy Habitat apps to a Kubernetes cluster that is running the Habitat operator.
Exporting to Kubernetes
To that end, we’d like to introduce the Habitat Kubernetes exporter.
The Kubernetes exporter is an additional command line subcommand to the standard Habitat CLI interface. It leverages the existing Docker image export functionality and, additionally, generates a Kubernetes manifest that can be deployed to a Kubernetes cluster running the Habitat operator.
The command line for the Kubernetes exporter is:
$ hab pkg export kubernetes ORIGIN/NAME
hab pkg export kubernetes --help to see the full list of available options and general help.
Let’s take a look at the Habitat Kubernetes exporter in action.
As you can see, the Habitat Kubernetes exporter helps you to deploy your applications that are built and packaged with Habitat on a Kubernetes cluster by generating the needed manifest files.
More to come
We’ve got more exciting ideas for making Habitat and Habitat Builder work even more seamlessly with Kubernetes. So stay tuned for more.