Skip to content

1. Installation

Min Kim edited this page May 6, 2022 · 3 revisions

Installation

To install the Java client library to your local Maven repository, simply execute:

git clone --recursive https://github.com/kubernetes-client/java
cd java
mvn install

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>io.kubernetes</groupId>
    <artifactId>client-java</artifactId>
    <version>15.0.1</version>
</dependency>

Gradle users

compile 'io.kubernetes:client-java:15.0.1'

Others

At first generate the JAR by executing:

git clone --recursive https://github.com/kubernetes-client/java
cd java/kubernetes
mvn package

Then manually install the following JARs:

  • target/client-java-api-15.0.1-SNAPSHOT.jar
  • target/lib/*.jar
Clone this wiki locally