Closed michaelschem closed 2 years ago
ok, it's istio routing the connection through localhost. Is there anyway to ignore what host is being used?
Ok, solved. For anyone trying to do this, you'll need to re-write the Host header in the istio VirtualService.
- destination:
host: p1-cups-service
port:
number: 631
headers:
request:
add:
Host: "localhost"
Hey, I'm glad that you found a solution to fix your problem 👍 For anyone interested that's not using Istio, I guess that you could also setup the proper setting in the cupsd configuration file (most probably ServerAlias or ServerName).
I've got the attached kubernets yaml. When I hit the service directly I get a
Bad Request
response. Interestingly if I send the headerHost: localhost
it seems to work just fine.my log (/var/log/cups/error_log ) files show the following error showing it failing when I access the service directly and through istio behind the domain.
I've added the below configs as frequently reccomended.