Warning
You are currently viewing v"2.15" of the documentation and it is not the latest. For the most recent documentation, kindly click here.
KEDA Integration with Istio Click here for latest
Guidance for running KEDA along with Istio in your cluster
Integrating KEDA with Istio can present challenges, particularly in environments with enforced mTLS. This document provides guidance on how to configure KEDA to work within an Istio service mesh without disabling Istio sidecar injection. This solution allows KEDA components to communicate securely and effectively while maintaining compliance with security requirements.
This can be considered as workaround, however it’s perfectly valid from the security standpoint. Keda is still using own mTLS certificates for secure communication between it’s components and at the same time it’s able to communicate with Istio Mesh services (like Prometheus) through Istio sidecar proxies.
In some scenarios, users might face issues with KEDA components failing discovery checks when Istio sidecar injection is enabled. The current troubleshooting guide suggests disabling Istio sidecar injection in the KEDA namespace. However, if this is not feasible due to security policies, the following workaround can be applied.
values.yaml
fragment for the helm chart
...
podAnnotations:
# -- Pod annotations for KEDA operator
keda:
traffic.sidecar.istio.io/excludeInboundPorts: "9666"
traffic.sidecar.istio.io/excludeOutboundPorts: "9443,6443"
# -- Pod annotations for KEDA Metrics Adapter
metricsAdapter:
traffic.sidecar.istio.io/excludeInboundPorts: "6443"
traffic.sidecar.istio.io/excludeOutboundPorts: "9666,9443"
# -- Pod annotations for KEDA Admission webhooks
webhooks:
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
traffic.sidecar.istio.io/excludeOutboundPorts: "9666,6443"
...
Check your respective ports set correctly for each component.
For more information on the annotations used, refer to the Istio documentation on traffic management. Existing troubleshooting guide for KEDA with Istio.
By applying these annotations, you can ensure that KEDA integrates seamlessly with Istio while adhering to security requirements. This configuration allows KEDA to maintain internal mTLS communication and interact properly with other mesh services.
If you encounter any issues or have further questions, please refer to the KEDA and Istio documentation or reach out to the community for support.