Difficulty: intermediate
Estimated Time: 20 minutes

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Demo Docker Alcyor


Démo Kubernetes App

  1. Deploy, check, expose, scale


kubectl run front-web --image nginx:stable-alpine

kubectl get all

docker ps | grep front-web

kubectl delete pod

cat front-web.yaml

kubectl create -f front-web.yaml

kubectl get deployment,svc,rc,pod

curl host01:30080

kubectl scale deploy/front-web --replicas=2

kubectl get deployment,svc,rc,pod

  1. Update, rollback

cat votingapp.yaml

kubectl create -f votingapp.yaml

Check web srv

kubectl scale deploy/vote --replicas=2

sed votingapp.yaml

kubectl rolling-update deploy/vote -f votingapp-v2.yaml

Check web srv

kubectl apply -f votingapp.yaml

  1. Mesh

Service to v1/v2/v3

Terminal Host 2