cloud-native-starter icon indicating copy to clipboard operation
cloud-native-starter copied to clipboard

the server doesn't have a resource type "gateway"

Open nc-jeni opened this issue 9 months ago • 1 comments

The apps web-api and web-app fail to start

$ scripts/show-urls.sh
Error from server (NotFound): namespaces "istio-system" not found
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 kiali
2025-05-15 11:06:31 Run the command: istioctl dashboard kiali
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 prometheus
2025-05-15 11:06:31 Run the command: istioctl dashboard prometheus
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 jaeger
2025-05-15 11:06:31 Run the command: istioctl dashboard jaeger
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 grafana
2025-05-15 11:06:31 Run the command: istioctl dashboard grafana
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 articles
2025-05-15 11:06:31 API explorer: http://192.168.49.2:32195/openapi/ui/
2025-05-15 11:06:31 Sample API: curl "http://192.168.49.2:32195/articles/v1/getmultiple?amount=10"
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 authors
2025-05-15 11:06:31 Sample API: curl "http://192.168.49.2:31736/api/v1/getauthor?name=Niklas%20Heidloff"
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 authentication
2025-05-15 11:06:31 authentication is not available. Run scripts/deploy-authentication-nodejs.sh
2025-05-15 11:06:31 ------------------------------------------------------------------------------------
2025-05-15 11:06:31 web-api
error: the server doesn't have a resource type "gateway"
2025-05-15 11:06:32 API explorer: http://192.168.49.2:32291/openapi/ui/
2025-05-15 11:06:32 Metrics: http://192.168.49.2:32291/metrics/application
2025-05-15 11:06:32 Sample API: curl "http://192.168.49.2:32291/web-api/v1/getmultiple"
2025-05-15 11:06:32 ------------------------------------------------------------------------------------
2025-05-15 11:06:32 web-app
error: the server doesn't have a resource type "gateway"
2025-05-15 11:06:32 Ingress not available. Run scripts/deploy-istio-ingress-v1.sh
2025-05-15 11:06:32 ------------------------------------------------------------------------------------

Extracting the errors

2025-05-15 11:06:31 web-api error: the server doesn't have a resource type "gateway"
2025-05-15 11:06:31 web-app error: the server doesn't have a resource type "gateway"

How do I solve it?

nc-jeni avatar May 15 '25 09:05 nc-jeni

Jess, the first error in the log you provided (namespaces "istio-system" not found) indicates that you haven't installed Istio. Without Istio there is no resource type "gateway".

Here are the instructions to install Istio: https://github.com/IBM/cloud-native-starter/blob/master/documentation/SetupLocalEnvironment.md#istio

Istio Version 1.5.1 is very old but with the exception of Jaeger for distributed tracing I think it should work with the current version of Istio, too

What type of Kubernetes are you testing on?

Another update: I tested the base setup (non reactive, no security) on a current version of Minikube with Istio 1.25.2 and can make it work when I undo a change in the file web-app-vuejs/src/store.js.template (line 10 api endpoint needs to be reverted back to http, there is no https setup in the base)

Harald-U avatar May 15 '25 14:05 Harald-U