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
How to build a cost-effective serverless blogging platform on GCP - Part 1
How to build a cost-effective serverless blogging platform on GCP - Part 1
Mar 13, 2019 12:00:00 AM
11
min read
Oracle upgrade failures due to METHOD_OPT and XDBCONFIG
Oracle upgrade failures due to METHOD_OPT and XDBCONFIG
Nov 11, 2015 12:00:00 AM
7
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.