Skip to content

zoechirico/k8s

Repository files navigation

k8s

Kubernetes Notes

Step 1

sudo ./sudo_k8s_basic_w_istio_setup

Step 2

make

Step 3

. setup_istio_in_k8s.sh 

Step 4

cd codespace:~/workspace/k8s/istio-1.8.1
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
kubectl apply -f samples/addons

kubectl rollout status deployment/kiali -n istio-system

export INGRESS_HOST=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].port}')
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].port}')
export TCP_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="tcp")].port}')
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT

curl -s "http://${GATEWAY_URL}/productpage" | grep -o "<title>.*</title>"

Step 5

Generate data

watch curl -s "http://${GATEWAY_URL}/productpage" | grep -o "<title>.*</title>"

Step 6

istioctl install --set values.global.logging.level=debug

Step 7

istioctl dashboard kiali

About

Kubernetes Notes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors