Last active
November 22, 2017 07:46
-
-
Save joonathan/02a6e5d10d1ff98cfc9d974192a8964a to your computer and use it in GitHub Desktop.
Line by line for "0 to 60 with Kuebrnetes and Istio" talk demos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3api create-bucket --bucket kubernetes-example-co-uk-state-store-2 --region eu-central-1 --create-bucket-configuration LocationConstraint=eu-central-1 --profile kops | |
aws s3api put-bucket-versioning --bucket kubernetes-example-co-uk-state-store-2 --versioning-configuration Status=Enabled --profile kops | |
kops create cluster \ | |
--zones "eu-central-1a,eu-central-1b,eu-central-1c" \ | |
--master-zones "eu-central-1a,eu-central-1b,eu-central-1c" \ | |
--master-count 3 \ | |
--node-count 4 \ | |
--topology private \ | |
--networking kopeio-vxlan \ | |
--bastion \ | |
--name presentationcluster.kubernetes-example.co.uk \ | |
--state s3://kubernetes-example-co-uk-state-store-2 | |
kops edit --name cluster presentationcluster.kubernetes-example.co.uk --state s3://kubernetes-example-co-uk-state-store-2 | |
kops edit ig --name presentationcluster.kubernetes-example.co.uk nodes --state s3://kubernetes-example-co-uk-state-store-2 | |
kops update cluster --name presentationcluster.kubernetes-example.co.uk --yes --state s3://kubernetes-example-co-uk-state-store-2 | |
kubectl get nodes | |
kops validate cluster --state s3://kubernetes-example-co-uk-state-store-2 | |
kubectl get pods --namespace kube-system | |
cd istio | |
export PATH=$PWD/bin:$PATH | |
kubectl apply -f install/kubernetes/istio.yaml | |
kubectl get svc -n istio-system | |
kubectl get pods -n istio-system | |
kubectl apply -f install/kubernetes/addons/prometheus.yaml | |
kubectl apply -f install/kubernetes/addons/grafana.yaml | |
kubectl apply -f install/kubernetes/addons/servicegraph.yaml | |
kubectl apply -n istio-system -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml | |
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo.yaml) | |
kubectl get services | |
kubectl get pods | |
kubectl get ingress -o wide | |
GATEWAY=$(kubectl get ingress -o jsonpath='{.items[0].status.loadBalancer.ingress[0].hostname}') | |
cli53 rrcreate --replace kubernetes-example.co.uk "books 60 CNAME ${GATEWAY}." | |
open -a "Google Chrome" http://books.kubernetes-example.co.uk/productpage | |
istioctl create -f samples/bookinfo/kube/route-rule-all-v1.yaml | |
istioctl create -f samples/bookinfo/kube/route-rule-reviews-test-v3.yaml | |
istioctl get routerule reviews-test-v3 -o yaml | |
istioctl replace -f samples/bookinfo/kube/route-rule-reviews-50-v3.yaml | |
istioctl replace -f samples/bookinfo/kube/route-rule-reviews-v3.yaml | |
istioctl delete -f samples/bookinfo/kube/route-rule-reviews-test-v3.yaml | |
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 | |
open -a "Google Chrome" http://127.0.0.1:3000/dashboard/db/istio-dashboard | |
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=servicegraph -o jsonpath='{.items[0].metadata.name}') 8088:8088 | |
open -a "Google Chrome" http://127.0.0.1:8088/dotviz | |
kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 | |
open -a "Google Chrome" http://127.0.0.1:16686 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment