/kubernetes-demo

A demo app to show orchestrating Docker with Kubernetes

Primary LanguageShell

Orchestrating Docker with Kubernetes

This is a demo app to showcase orchestrating Docker with Kubernetes. You can find more at my post.

Usage

  1. Run backend
kubectl create -f backend.yaml
  1. Run frontend
kubectl create -f frontend.yaml
  1. Self-healing

Delete a random pod and see Kubernetes creates a new one.

kubectl delete pod frontend-2747139405-bk4ul; kubectl get pods
  1. Scaling
kubectl scale deployment/frontend --replicas=6; kubectl get pods
  1. Rolling update
kubectl create -f frontend-canary.yaml
vim frontend.yaml # update simple-node:v1 to simple-node:v2
kubectl apply -f frontend.yaml