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 withGET
job-sender
, small Golang program that sends a HTTP requests that are based on environment variables exposed to the Pod (in this case)
docker login
to your Docker Hub accountmake dockerize
, this will build and push the two images needed (job-sender
andjob-logger
)- Reference your Docker Hub account and image names in all Kubernetes manifests. Or keep the images provided by me.
kubectl apply
the Deployment, make sure that thejob-logger
web server starts and works as expected.kubectl apply
one job manifest at a time, tail the logs of thejob-logger
so 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.