I need to setup mutual tls communication from kubernetes pod to external service. My system is running with istio system.
I found reference about this.
https
I found solution.
kubectl create secret generic my-cert --from-file=cert1.crt --from-file=cert2.crt
annotations:
sidecar.istio.io/userVolumeMount: '[{"name":"my-cert", "mountPath":"/etc/my-cert", "readonly":true}]'
sidecar.istio.io/userVolume: '[{"name":"my-cert", "secret":{"secretName":"my-cert"}}]'
Documentation on these and other annotations: https://preliminary.istio.io/docs/reference/config/annotations/
Done. It's mounted to envoy proxy pod.