Skip to content

LIP17/k8s-java-example

Repository files navigation

k8s-java-example

A demo of how to use K8s Java Client and how to test it

  1. Setup local K8s cluster, apply all the resource under scripts/
  • namespace.yaml
  • service-account.yaml
  • cluster-role-binding.yaml
  • target-deployment.yaml
  • deployment-service.yaml
  1. All the Java source code is under src/. Use ./gradlew build to build jar file, this repo requires Java 17+

  2. Use local Dockerfile to build docker image, and change image and tag accordingly in deployment-service.yaml

  3. The Java application has default debug port enabled, attach to port 5005 for debugging purpose.

About

A demo of how to use K8s Java Client and how to test it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published