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(); builder.setChart(theChartYouLoaded); builder.setValues(someConfigYouBuilt); builder.setNamespace(whereYouWantIt); 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.
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?
Hi; sorry for the delay in getting back to you! The class—perhaps?—you’re looking for is here: https://microbean.github.io/microbean-helm/apidocs/hapi/services/tiller/Tiller.InstallReleaseResponse.html.