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.
Apache beam pipelines with Scala: part 1 - template
Apache beam pipelines with Scala: part 1 - template
Dec 12, 2017 12:00:00 AM
3
min read
Generating Documentation for Your Python Code Using Cloud Build and Sphinx

Generating Documentation for Your Python Code Using Cloud Build and Sphinx
Feb 3, 2022 12:00:00 AM
8
min read
Configuring OID 11.1.1.6 Connector in OIM 11.1.2
Configuring OID 11.1.1.6 Connector in OIM 11.1.2
Jul 12, 2013 12:00:00 AM
6
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.