Ever wanted a simple server up on K8s without building a docker image or publishing to ECR? Well you can do that by mounting a script into a python image and running it. This post shows you how.

The goal

Define a single YAML configuration for kubernetes that contains a python server image and the code to run on it. We will use this to create a simple health check service that pings our app repeatedly.

The k8s deployment