How nixndme/hks-kube-con works
K8s Showcase is a Flask telemetry demo for observing Kubernetes deployments and blue/green switches. A visitor reaches the app through the cluster’s ingress and service; the app serves a status page and JSON endpoint, tracking recent visitors and reading pod and rollout state from the Kubernetes API. Deployment configuration is provided both as plain Kubernetes manifests and as a Helm chart; the README also describes GitOps updates driven by chart values. The app implementation was sampled, but deployment manifests and template contents were not, so those relationships are shown only where documented.
Main entry points: app.py Status endpoint · ingress.yaml Cluster ingress · service.yaml App service · deployment.yaml Kubernetes deployment
Components 17
Traffic and app
- Cluster ingress
k8s/ingress.yaml - App service
k8s/service.yaml - Flask app
app/app.py - Status page
app/templates/index.html - Status endpoint
app/app.py
Live telemetry
- Visitor tracking
app/app.py - Pod mix
app/app.py - Rollout detail
app/app.py - Deploy metadata
app/app.py
Deployment configuration
- Kubernetes deployment
k8s/deployment.yaml - Kubernetes configuration
k8s/configmap.yaml - Helm chart
helm/k8s-showcase - Chart values
helm/k8s-showcase/values.yaml
Other components
- Visitor
- Kubernetes API
- GitOps poller
- Kubernetes cluster
Connections 17
- Visitor → Cluster ingress: requests
README.md - Cluster ingress → App service: routes traffic
README.md - App service → Flask app: forwards requests
README.md - Flask app → Status page: renders
app/app.py - Visitor → Visitor tracking: visits page
app/app.py - Visitor tracking → Status endpoint: records visits for
app/app.py - Flask app → Status endpoint: routes status
app/app.py - Status endpoint → Pod mix: calls
app/app.py - Status endpoint → Rollout detail: calls
app/app.py - Status endpoint → Deploy metadata: returns metadata
app/app.py - Pod mix → Kubernetes API: lists pods
app/app.py - Rollout detail → Kubernetes API: reads pods and service
app/app.py - Kubernetes deployment → Kubernetes cluster: deploys app
README.md - Kubernetes configuration → Kubernetes cluster: configures app
README.md - Helm chart → Kubernetes cluster: installs app
README.md - Chart values → GitOps poller: triggers redeploy
README.md - GitOps poller → Kubernetes cluster: redeploys
README.md