istio - enabling debugging
Normally we would be able to do it using the following yaml
apiVersion: install.istio.io/v1
But sometimes we dont have istio operator crds install on our local testing cluster. So to quicky enable logging, we can do this accessLogFile to dev/stdout as shown here:-
kubectl -n istio-system edit configmap istio
And then restart istio
kubectl rollout restart deploy -n istio-system istiod
kubectl rollout restart deploy -n istio-system istio-ingressgateway
kubectl rollout restart deploy -n istio-system istio-egressgateway
You can enable debuggin on the pod level by running the command
istioctl proxy-config log <pod> --level debug
We can also do this
kubectl exec -n istio-system deploy/istiod -c discovery -- \
curl -X POST "localhost:15014/debug?level=debug"
Comments