git-sync/demo
Tim Hockin aa230f92f8 Retool the demo
Rather than hugo, which I really don't know much about and don't care to
maintain, it now is just a trivial HTTP server (python) serving content
from this repo.
2024-06-12 19:13:13 -07:00
..
html Retool the demo 2024-06-12 19:13:13 -07:00
README.md Retool the demo 2024-06-12 19:13:13 -07:00
deployment.yaml Retool the demo 2024-06-12 19:13:13 -07:00
service.yaml Retool the demo 2024-06-12 19:13:13 -07:00

README.md

git-sync-demo

This demo shows how to use a git-sync container alongside an HTTP server to serve static content.

How it works

The pod is composed of 2 containers that share a volume.

  • The git-sync container clones a git repo into the content volume
  • The http container serves that content

For the purposes of this demo, it's about as trivial as it can get.

Usage

Apply the deployment and the service files:

kubectl apply -f deployment.yaml
kubectl apply -f service.yaml

Wait for the service to be assigned a LoadBalancer IP, then open that IP in your browser.