Kubernetes objects - Java objects - It's a simple object-oriented representation of Kubernetes
objects(pods, services,
deployments, jobs, etc.).
You can create and manage them in pretty declarative way.
Principles. These are the design principles behind k8sojo.
You add this to your pom.xml
:
<dependency>
<groupId>com.h1alexbel</groupId>
<artifactId>k8sojo</artifactId>
</dependency>
Job API
import com.h1alexbel.k8sojo.Container;
import com.h1alexbel.k8sojo.DcContainer;
import com.h1alexbel.k8sojo.Kojo;
import com.h1alexbel.k8sojo.Metadata;
import com.h1alexbel.k8sojo.Spec;
final Container realo = new DcContainer("realo", "abialiauski/realo", List.of("-java"));
Kojo kojo = new JobKojo(
new JobMetadata("realo-job"),
new JobSpec(
new JobTemplate(
new JobTemplateSpec(
List.of(realo), "Never"
)
),
4)
);
TBD
TBD
TBD
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the master
branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:
$ mvn clean install
You will need Maven 3.3+ and Java 17+.