環境
- Kubernetes 1.24
istio-injection
# ON kubectl label namespace default istio-injection=enabled # OFF kubectl label namespace default istio-injection- # 確認 kubectl get namespace -L istio-injection
bookinfo
kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/bookinfo-gateway.yaml -n bookinfo
httpbin
kubectl create namespace httpbin kubectl label namespace httpbin istio-injection=enabled kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/httpbin/httpbin.yaml -n httpbin kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/httpbin/httpbin-gateway.yaml -n httpbin
❯ kubectl get pods,deployments,svc,virtualservice -n httpbin NAME READY STATUS RESTARTS AGE pod/httpbin-847f64cc8d-btk28 2/2 Running 0 2m59s pod/httpbin-847f64cc8d-v7hn8 2/2 Running 0 2m59s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/httpbin 2/2 2 2 3m9s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/httpbin ClusterIP 10.105.210.23 <none> 8000/TCP 3m9s NAME GATEWAYS HOSTS AGE virtualservice.networking.istio.io/httpbin ["httpbin-gateway","mesh"] ["httpbin1.turai.work"] 2m55s
curl --resolve httpbin1.turai.work:80:10.0.0.210 http://httpbin1.turai.work
エラー調査
- istioctl analyze -n httpbin
- pod rsを見る
- istioctl upgrade --set profile=demo --set meshConfig.accessLogFile=/dev/stdout -y
- rsとかgwをkillしてみる