Small app to demonstrate how to read CRON expression from Kubernetes deployment args to SpringBoot's @Scheduled
annotation.
- Build the jar by running
./gradlew clean build
- Build the docker image by running
docker build -t k8scrontest -f Dockerfile .
- Create the K8s deployment by running
kubectl apply -f deployment.yml
- Check the logs by running
kubectl logs -f k8scrontest-<pod-id>
⭐ Star this repository — it helps!