Created for work related testing of Kubernetes Jobs
- Kubernetes Deployment and different types of job manifests
job-logger, small web server written in Golang that basically logs different messages depending on which endpoint/path you access withGETjob-sender, small Golang program that sends a HTTP requests that are based on environment variables exposed to the Pod (in this case)
docker loginto your Docker Hub accountmake dockerize, this will build and push the two images needed (job-senderandjob-logger)- Reference your Docker Hub account and image names in all Kubernetes manifests. Or keep the images provided by me.
kubectl applythe Deployment, make sure that thejob-loggerweb server starts and works as expected.kubectl applyone job manifest at a time, tail the logs of thejob-loggerso that you can see the results.
The end result will be a number of log messages logged by job-logger for every Kubernetes Job run and the combination of completions and parallellism settings on the Job.