Skip to content

Simple k8s deployment of a python script that spins up a k8s job

Notifications You must be signed in to change notification settings

hholgersen/job-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Launch a k8s Job

This repo consists of 3 things:

  • a python-script main.py that spins up a k8s job on the current cluster
  • a Dockerfile that builds the docker image with the python script
  • a deployment spec, deployment.yaml that launches the image built from the Dockerfile.

Currently, the deployment refers to a pre-built openly available version of the docker image that was built from the Dockerfile. You may want to build this yourself, instead of just running random containers found on the internet.

If you change namespace, remember to change the python-script as well.

About

Simple k8s deployment of a python script that spins up a k8s job

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published