MicroBean Helm: Helm from Java

I’ve just released another snapshot version of my MicroBean Helm project on the way to another real release.  (Helm is the package manager for Kubernetes.)

With this latest snapshot, you can install Tiller into your Kubernetes cluster like this (as before):

final TillerInstaller tillerInstaller = new TillerInstaller();
tillerInstaller.init(true /* yes, upgrade if a new version is available */)

Then you can load a chart from a directory like this:

final ChartLoader chartLoader = new DirectoryChartLoader();
final Chart chart = chartLoader.load(someChartDirectory);

…or from a tarball like this:

final ChartLoader chartLoader = new TapeArchiveChartLoader();
final Chart chart = chartLoader.load(new TarInputStream(new GZIPInputStream(Files.newInputStream("someChart.tgz"))));

Then, armed with that Chart, you can create an InstallReleaseRequest with it (as before):

final InstallReleaseRequest.Builder builder = InstallReleaseRequest.newBuilder();
final InstallReleaseRequest request = builder.build();

Then you can install the chart (as before):

final Tiller tiller = new Tiller(new DefaultKubernetesClient());
final ReleaseServiceGrpc.ReleaseServiceBlockingStub stub = tiller.getReleaseServiceBlockingStub();
final Tiller.InstallReleaseResponse response = stub.installRelease(request);
final ReleaseOuterClass.Release release = response.getRelease();

Full API documentation is online. More on the way. Teaser: there are many ways in the Java ecosystem to load a chart.

Author: Laird Nelson

Devoted husband and father; working on Helidon at the intersection of Java, Jakarta EE, architecture, Kubernetes and microservices at Oracle; open source guy; Hammond B3 player and Bainbridge Islander.

2 thoughts on “MicroBean Helm: Helm from Java”

  1. Hi! I’m trying to use it but have an issue – final Tiller.InstallReleaseResponse response = stub.installRelease(request); There is no such a void like InstallReleaseResponse in this snapshot. Or I am doing something wrong?

Comments are closed.

%d bloggers like this: