I'm using istio-proxy sidecar with Kubernetes, sidecars are automatically added to the Kubernetes pods. I want to turn off the access log for one single deployment (without disabling the sidecar). is there an annotation to do that?
I'm using istio-proxy sidecar with Kubernetes, sidecars are automatically added to the Kubernetes pods. I want to turn off the access log for one single deployment (without disabling the sidecar). is there an annotation to do that?
As I mentioned in comments
If you want to disable envoy’s access logging globally you can use istioctl/operator to do that.
There is istio documentation about that.
Remove, or set to "", the meshConfig.accessLogFile setting in your Istio install configuration.
There is istioctl command:
istioctl install --set meshConfig.accessLogFile=""
There is an example with istio operator:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
profile: default
meshConfig:
accessLogFile: ""
If you want to disable it for a specific pod you can use use below command, there is envoy documentation about that.
curl -X POST http://localhost:15000/logging?level=off
As you're looking for a way to do that for deployment that trick with init container and above curl command might actually work.