However, when it comes to running the test curl -i localhost:8080/httpbin/get all I get back is a 404 response with the following message being logged Handling connection for 8080 E0623 11:07:32.746221 107096 portforward.go:391] error copying from local connection to remote stream: read tcp4 127.0.0.1:8080->127.0.0.1:47928: read: connection reset by peer Handling connection for 8080
My configuration is as follows -
Windows 11
Docker Desktop + WSL2 Integration + Kubernetes enabled
Ubuntu 22.04.2 LTS
I managed to get it working. The issue was that the gateway was running in namespace tyk and the operator was running in namespace tyk-operator-system. These namespaces are the ones specified in the various getting started docs, so should the operator and gateway share the same namespace or is there a configuration step that I’m missing?
You should be able to enable SSL on your gateway by setting tls in your values.yaml to true, and specifying the path to the certificate using extraEnvs (specifically the TYK_GW_HTTPSERVEROPTIONS_SSLCERTIFICATES variable on the gateway.
If you’re using this repo, you can enable the gateway SSL here.
This other line will let you use the certificate already provided (in the templates folder), rather than one you’ve generated yourself.