Eclipse JKube™
Cloud-Native Java Applications without a hassle
Eclipse JKube is a collection of plugins and libraries that are used for building container images using Docker, JIB or S2I build strategies. Eclipse JKube generates and deploys Kubernetes/OpenShift manifests at compile time too.
It brings your Java applications on to Kubernetes and OpenShift by leveraging the tasks required to make your application cloud-native.
Eclipse JKube also provides a set of tools such as watch, debug, log, etc. to improve your developer experience.
Get Started
🚀 Getting started📖 Documentation
- Add the plugin to your
pom.xml:<build> <plugins> <plugin> <groupId>org.eclipse.jkube</groupId> <artifactId>kubernetes-maven-plugin</artifactId> <version>1.20.0</version> </plugin> </plugins></build> - Run the following command to build and deploy your application to Kubernetes:
$ mvn package k8s:build \ k8s:push \ k8s:resource \ k8s:apply
🚀 Getting started📖 Documentation
- Add the plugin to your
pom.xml:<build> <plugins> <plugin> <groupId>org.eclipse.jkube</groupId> <artifactId>openshift-maven-plugin</artifactId> <version>1.20.0</version> </plugin> </plugins></build> - Run the following command to build and deploy your application to Kubernetes:
$ mvn package oc:build \ oc:resource \ oc:apply
🚀 Getting started📖 Documentation
- Add the plugin to your
build.gradle:plugins { id 'org.eclipse.jkube.kubernetes' version '1.20.0'} - Run the following command to build and deploy your application to Kubernetes:
$ gradle build k8sBuild \ k8sPush \ k8sResource \ k8sApply
🚀 Getting started📖 Documentation
- Add the plugin to your
build.gradle:plugins { id 'org.eclipse.jkube.openshift' version '1.20.0'} - Run the following command to build and deploy your application to Kubernetes:
$ gradle build ocBuild \ ocResource \ ocApply


Features
Kubernetes Maven Plugin
- Generates container images with flexible and powerful configuration (Integrates with Docker Daemon or JIB).
- Generates vanilla Kubernetes descriptors (YAML files).
- Provides Zero Configuration for a quick ramp-up where opinionated defaults will be pre-selected.
- Provides Inline Configuration within the plugin configuration in an XML syntax.
- Provides External Configuration templates of real deployment descriptors which are enriched by plugin.
OpenShift Maven Plugin
- Built on top of Kubernetes Maven Plugin provides OpenShift specific features.
- Dealing with S2I images and hence inherits its flexible and powerful configuration.
- Generates OpenShift specific descriptors (YAML files).
- Provides Zero Configuration for a quick ramp-up where opinionated defaults will be pre-selected.
- Provides Inline Configuration within the plugin configuration in an XML syntax.
- Provides External Configuration templates of real deployment descriptors which are enriched by plugin.
JKube Kit
- Core
- Generator framework for automatically generating Docker images by examining project information.
- Enricher framework for creating and enhancing Kubernetes/OpenShift resource descriptors.
- Profile combining configuration for generators and enrichers.
- Resource Configuration model objects for a simplified configuration of Kubernetes/OpenShift resource.
- Image Configuration model objects for modeling Docker image configuration.

