Interview › Istio & Service Mesh
How do you handle secrets and certificates for the ingress gateway (TLS termination)?
Istio & Service Mesh · Advanced level
Answer
For ingress gateway TLS termination, I store certificates as Kubernetes TLS secrets or use a certificate manager integration, reference them from the Gateway using credentialName, and restrict secret access to the gateway namespace and platform automation.
Technical explanation
cert-manager is commonly used to automate issuance and renewal from an internal CA or ACME provider.
Gateway TLS mode SIMPLE terminates TLS at the gateway; PASSTHROUGH keeps TLS to the backend and uses SNI routing.
Secret governance matters: only approved automation should create or rotate gateway certificates.
Hands-on example
TLS secret example:
$ kubectl -n istio-ingress create secret tls app-tls --cert=tls.crt --key=tls.keyGateway snippet:
tls:
mode: SIMPLE
credentialName: app-tls
hosts:
- app.example.comValidate:
$ openssl s_client -connect app.example.com:443 -servername app.example.comCheck how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- What is SNI-based routing, and how does the ingress gateway use it?
- How do you decide whether a service should be in the mesh or not?
- How would you implement rate limiting in Istio (local and global)?
- How do you integrate an external authorization service with Istio?
- How does Istio interact with NetworkPolicies — do you need both?
- What is the difference between L4 and L7 policy enforcement in the mesh?
- How do you observe and reduce the error rate of a specific service via the mesh?
- How do you test an AuthorizationPolicy before enforcing it (dry-run)?