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.
pom.xml
:
<build> <plugins> <plugin> <groupId>org.eclipse.jkube</groupId> <artifactId>kubernetes-maven-plugin</artifactId> <version>1.17.0</version> </plugin> </plugins></build>
$ mvn package k8s:build \ k8s:push \ k8s:resource \ k8s:apply
pom.xml
:
<build> <plugins> <plugin> <groupId>org.eclipse.jkube</groupId> <artifactId>openshift-maven-plugin</artifactId> <version>1.17.0</version> </plugin> </plugins></build>
$ mvn package oc:build \ oc:resource \ oc:apply
build.gradle
:
plugins { id 'org.eclipse.jkube.kubernetes' version '1.17.0'}
$ gradle build k8sBuild \ k8sPush \ k8sResource \ k8sApply
build.gradle
:
plugins { id 'org.eclipse.jkube.openshift' version '1.17.0'}
$ gradle build ocBuild \ ocResource \ ocApply