Skip to content

Instantly share code, notes, and snippets.

@hermannolafs
Created November 30, 2021 16:26
Show Gist options
  • Save hermannolafs/b8514ded5335f4db008097118662a7a3 to your computer and use it in GitHub Desktop.
Save hermannolafs/b8514ded5335f4db008097118662a7a3 to your computer and use it in GitHub Desktop.
Simple HTTP server config for K8s, meant for basic network stuff.
apiVersion: v1
kind: Pod
metadata:
name: simpserver
spec:
containers:
- name: simpserver
image: python:3.10
command: ["python3"]
args: ["-m", "http.server", "8080"]
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment