Class InClusterClientExample

java.lang.Object
io.kubernetes.client.examples.InClusterClientExample

public class InClusterClientExample extends Object
A simple example of how to use the Java API inside a kubernetes cluster

Easiest way to run this: mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.InClusterClientExample"

From inside $REPO_DIR/examples

  • Constructor Details

    • InClusterClientExample

      public InClusterClientExample()
  • Method Details

    • main

      public static void main(String[] args) throws IOException, io.kubernetes.client.openapi.ApiException
      Throws:
      IOException
      io.kubernetes.client.openapi.ApiException