openfaas / workshop

Learn Serverless for Kubernetes with OpenFaaS
https://www.openfaas.com
MIT License
957 stars 313 forks source link

Wrong Gateway Hostname in the Lab 4 #178

Closed jenoOvchi closed 2 years ago

jenoOvchi commented 4 years ago

In the lab 4 (https://github.com/openfaas/workshop/blob/master/lab4.md) in part "Call one function from another" you use "gateway" as a default value for "gateway_hostname" variable when "gateway_hostname" is not set. OpenFaaS functions hosted in the openfaas-fn Kubernetes namespace instead of OpenFaaS Gateway that placed in the openfaas Kubernetes namespace. So you need to put namespace name after service name to resolve this hostname from another namespace and use "gateway.openfaas" as a default for "gateway_hostname" variable.

jenoOvchi commented 4 years ago

The same note i found in the next lab (https://github.com/openfaas/workshop/blob/master/lab5.md): Note: If you're running on Kubernetes, suffix the gateway_hostname with openfaas namespace: gateway_hostname: "gateway.openfaas"