How to creates Kubernetes jobs with Python
The code that I created:
- A Dockerfile for my container
- A Python App that has the code to run (this will be the Job)
- Commit the code to the GCP Source Code Repositories
- A CloudBuild trigger (docs: https://cloud.google.com/cloud-build/docs/) that creates the container
- Create a trigger (can be a CronJob) that runs the code that deploys the Job.
- For this exercise, I’m going to trigger the Job creation from my own laptop.
- Job object
- Contains a metadata object
- Contains a job spec object
- Contains a pod template object
- Contains a pod template spec object
- Contains a container object
- Contains a pod template spec object
- Contains a pod template object
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Dockerized PMM in production

Dockerized PMM in production
Mar 7, 2018 12:00:00 AM
4
min read
Oracle E-Business Suite and 12cR1 database in Extended support - What to do?

Oracle E-Business Suite and 12cR1 database in Extended support - What to do?
Oct 30, 2019 12:00:00 AM
2
min read
Automatic Graceful Shutdown and Consistent Startup Method for Oracle DB on Linux
Automatic Graceful Shutdown and Consistent Startup Method for Oracle DB on Linux
Feb 12, 2020 12:00:00 AM
3
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.