feat: embed k3s to run soul-demo as self-healing k8s pods #9
Reference in New Issue
Block a user
Delete Branch "feat/k3s-embedded-soul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
soul-demo:localOCI tar (no registry needed), and auto-applies the Deployment + NodePort Service + HPA from the server/manifests dirArchitecture changes
/healthz:7772localhost:7772via the k3s NodePort servicebuild-stage.shgains a post-build step: extracts the soul-demo binary from the just-built image, buildssoul-demo:localviadist/Dockerfile.soul-demo, saves it asdist/soul-demo-image.tar, which is then COPY'd into the final image--execution-environment gen2; required for k3s (/dev/kmsg+ Linux capabilities not available on gen1/gVisor)New files
dist/Dockerfile.soul-demo— minimal image for soul-demo (debian:bookworm-slim + binary + snapshot)dist/k3s-soul-demo.yaml— Deployment, NodePort Service (nodePort 7772), and HPA manifestsTest plan
./build-stage.sh devlocally — verifydist/soul-demo-image.taris produced and sized reasonablyGET /healthzon the Cloud Run URL returns 200 after k3s + soul-demo startk3s kubectl get podsshows soul-demo Running inside the container (docker exec)localhost:7772Pull request closed