Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.25 KB

istio-carvel.md

File metadata and controls

48 lines (29 loc) · 1.25 KB

Progressive Delivery with Istio and Carvel ytt

TODO: Intro

Setup

yq --inplace ".istio.enabled = true" ytt/values-prod.yaml

yq --inplace ".istio.host = \"cncf-demo.$ISTIO_HOST\"" \
    ytt/values-prod.yaml

Do

ytt --file ytt/schema.yaml --file ytt/resources \
    --data-values-file ytt/values-prod.yaml \
    | tee yaml/prod/app.yaml

git add .

git commit -m "Progressive delivery"

git push

kubectl --namespace production get virtualservices

hey -z 5m "http://cncf-demo.$ISTIO_HOST"

echo "http://prometheus.$INGRESS_HOST"

Open the URL from the output in a browser.

Execute the sum(istio_requests_total{reporter="source",destination_service=~"cncf-demo.production.svc.cluster.local"}) query in the Prometheus UI.

Execute the sum(irate(istio_requests_total{reporter="source",destination_service=~"cncf-demo.production.svc.cluster.local",response_code!~"5.*",response_code!~"4.*"}[5m])) / sum(irate(istio_requests_total{reporter="source",destination_service=~"cncf-demo.production.svc.cluster.local"}[5m])) query in the Prometheus UI.

echo "http://grafana.$INGRESS_HOST"

Import Dashboards with the IDs 7645, 7639, and 7630

Continue The Adventure