Skip to content

jakemalley/k8s-python-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8S Python Executor

A simple image based on python:3.7-alpine to execute Python scripts inside a directory. By default the entrypoint.sh script will execute all .py files in the directory /opt/scripts/

Quick Start

There are two examples provided that both make use of Kubernetes CronJobs - See below:

All-In-One (CronJob and ConfigMap)

  1. Create the ConfigMap and CronJob from a single YAML file:

    kubectl apply -f examples/cronjob-aio.yaml
    

Standalone (CronJob, with ConfigMap created from a folder)

  1. Create the ConfigMap from a folder:

    kubectl create configmap example-scripts-dir --from-file=examples/exampleScripts
    
  2. Create the CronJob

    kubectl apply -f examples/cronjob-standalone.yaml
    

About

A simple Python script Executor for Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published