Skip to content

Instantly share code, notes, and snippets.

@joshdvir
Last active June 25, 2022 20:41
Show Gist options
  • Save joshdvir/d93f09f42d9b456ce224dd004996e0cd to your computer and use it in GitHub Desktop.
Save joshdvir/d93f09f42d9b456ce224dd004996e0cd to your computer and use it in GitHub Desktop.
Deploy-a-minimal-Kubernetes-workload.md

Candidate must have an IDE like Visual Studio Code installed, Minikube or Docker Desktop & Kubernetes set up locally, and the ability to share their screen over Zoom.

  1. Start from a single file Python 3 mini HTTP server The source code is located here: https://gist.github.com/eredo/1547873c189ed5ced7353d6217cfeb42
  2. Run locally and visit on http://localhost
  3. Dockerize it
  4. Run it locally through Docker Confirm it works by visiting http://localhost
  5. Deploy to k8s with a regular "deployment" Confirm it works inside the cluster by successfully sending an HTTP request to the pod
  6. Expose to the world using a "service" (NodePort or External IP) Confirm it works by visiting http://localhost

Share the configuration files you created

Good Luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment