A sample spring-boot app that uses Kubernetes API for Java to detect important deployment events. Specifically, if detects when a Deployment has started and when it finishes.
- JDK 11
- Access to a Kubernetes cluster via
kubectl
- A namespace where you can schedule some deployments (
dev
by default) - The
team
label assigned to all deployments that you want this app to pay attention to
./gradlew bootRun
If you want to target a Kubernetes namespace other than dev
, use the NAMESPACE
environment variable:
NAMESPACE=other-ns ./gradlew bootRun