Skip to content

aliAljaffer/app-deployments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Deployment Dashboard

Youtube Video (Arabic): https://www.youtube.com/watch?v=yYxxVzjvcms

Dashboard

Demonstration for three types of software deployment methods: Rolling Updates, Canary, Blue/Green.

See this drawing for more info: Excalidraw

Prerequisites

  • Minikube or any Kubernetes cluster running
  • kubectl configured and connected to your cluster
  • python@3.10+

Setup

  1. Start kubectl proxy:
kubectl proxy --port=8001

and in another terminal:

python3 cors-proxy.py
  1. Open the dashboard:
open dashboard.html
# Or simply double-click dashboard.html
  1. The dashboard should automatically connect to http://localhost:8002 or

Troubleshooting

Dashboard won't connect

  1. Check kubectl proxy is running:
curl http://localhost:8001/api/v1/namespaces/default/pods

Pods not appearing

  1. Check if pods are running:
kubectl get pods -l app=rolling-demo
kubectl get pods -l app=canary-demo
kubectl get pods -l app=bluegreen-demo
  1. Check namespace:
  • Dashboard is configured for the default namespace
  • Ensure deployments are in the default namespace

CORS Errors (when using HTTPS API URL)

This is common with direct API access. Solutions:

  1. Use kubectl proxy instead:
kubectl proxy --port=8001
  1. Or visit the API URL in your browser first and accept the certificate

Cleanup

To remove all resources:

# Delete deployments
kubectl delete -f rolling-update/
kubectl delete -f canary/
kubectl delete -f blue-green/

# Delete RBAC resources
kubectl delete -f rbac/

About

A demonstration on how different deployment types behave in the real world. In-scope: Blue/Green, Canary, Rolling Update.

Topics

Resources

Stars

Watchers

Forks

Contributors