Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile
README.rst
canary-svc.yaml
ingress.yaml
prod-svc.yaml
traefik-ingress-controller.yaml
traefik-ingress-controller_rbac.yaml
traefik-ingress-controller_svc.yaml

README.rst

Canary with Traefik

Run after 4_demo_canary, see Makefile:

kubectl apply -f *r.yaml
kubectl apply -f *svc.yaml
kubectl apply -f *_rbac.yaml

kubectl get svc --namespace=kube-system
kubectl scale --replicas=1 deploy/api-status-nginx-blue
kubectl scale --replicas=1 deploy/api-status-nginx-green
export SVC_PORT=$(kubectl get service traefik-ingress-service -n kube-system --output='jsonpath="{.spec.ports[0].nodePort}"' | tr -d '"')
watch -n0.3 -x curl -s $(minikube ip):${SVC_PORT}/status
# watch
watch -n0.3 -x kubectl get po
# change ingress.yaml
kubectl apply -f ingress.yaml
You can’t perform that action at this time.