Closed Varun-Mehrotra closed 6 months ago
Nevermind, this wasn't the case. Not sure what the specific issues was here but I've got a good feeling I just made a spelling mistake somewhere and when I re-applied things they fixed themselves. Regardless I spent some time going down a rabbit hole. Couple of learnings for anybody who might stumble on this:
keda-add-ons-http-interceptor-proxy.keda.svc.cluster.local
) before trying much else. ports
in the externalName service as well:
apiVersion: v1
kind: Service
metadata:
name: my-proxy
spec:
type: ExternalName
externalName: keda-add-ons-http-interceptor-proxy.keda.svc.cluster.local
ports:
- port: 80
targetPort: 8080
Report
The Keda http proxy is unable to find hosts and returns NamespacedName is nil error
Expected Behavior
When the proxy is hit with an appropriate host it should be able to serve traffic without an error
Actual Behavior
When I portforward the http-add-on proxy and hit it with a cURL call, it returns
Not Found
and the following can be seen on thekeda-add-ons-http-interceptor-proxy
logs:Steps to Reproduce the Problem
kubectl port-forward svc/keda-add-ons-http-interceptor-proxy -n keda 8080:8080
curl -H "Host:myhost.com" 127.0.0.1:8080
Logs from KEDA HTTP operator
N/A, no relevant HTTP operator logs
HTTP Add-on Version
0.8.0
Kubernetes Version
1.28
Platform
Amazon Web Services
Anything else?
Keda is installed in the
keda
namespace along with the http-add-on: