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.
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
Near Real-Time Data Processing for BigQuery: Part One
Near Real-Time Data Processing for BigQuery: Part One
Apr 15, 2021 12:00:00 AM
5
min read
Dialogflow chatbot with custom webhook using Python and GCP

Dialogflow chatbot with custom webhook using Python and GCP
May 24, 2023 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.