IBM / cloud-native-starter

Cloud Native Starter for Java/Jakarta EE based Microservices on Kubernetes and Istio
https://cloud-native-starter.mybluemix.net/
Apache License 2.0
516 stars 273 forks source link

Can't deploy istio-ingress-v1.sh #26

Closed jaerdoe closed 4 years ago

jaerdoe commented 4 years ago

The command

sudo scripts/deploy-istio-ingress-v1.sh

gives the following errors

2019-09-30 08:20:51 Deploying Istio Ingress definitions for web-api v1 only
error: unable to recognize "istio-ingress-gateway.yaml": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3"
error: unable to recognize "istio-ingress-service-web-api-v1-only.yaml": no matches for kind "VirtualService" in version "networking.istio.io/v1alpha3"
2019-09-30 08:20:51 Done deploying Istio Ingress definitions

So the show-urls.sh shows the following:

2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 kiali
2019-09-30 08:21:11 Run the command: kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001
2019-09-30 08:21:11 Then open http://localhost:20001/kiali/console with username: admin, password: admin
2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 prometheus
2019-09-30 08:21:11 Run the command: kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=prometheus -o jsonpath='{.items[0].metadata.name}') 9090:9090 &
2019-09-30 08:21:11 Then open http://localhost:9090/
2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 jaeger
2019-09-30 08:21:11 Run the command: kubectl -n istio-system port-forward $(kubectl get pod -n istio-system -l app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 &
2019-09-30 08:21:11 Then open http://localhost:16686
2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 grafana
2019-09-30 08:21:11 Run the command: kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &
2019-09-30 08:21:11 Then open http://localhost:3000/dashboard/db/istio-mesh-dashboard
2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 articles
2019-09-30 08:21:11 API explorer: http://10.0.2.15:31046/openapi/ui/
2019-09-30 08:21:11 Sample API: curl http://10.0.2.15:31046/articles/v1/getmultiple?amount=10
2019-09-30 08:21:11 ------------------------------------------------------------------------------------
2019-09-30 08:21:11 authors
2019-09-30 08:21:12 Sample API: curl http://10.0.2.15:30257/api/v1/getauthor?name=Niklas%20Heidloff
2019-09-30 08:21:12 ------------------------------------------------------------------------------------
2019-09-30 08:21:12 authentication
2019-09-30 08:21:12 authentication is not available. Run scripts/deploy-authentication-nodejs.sh
2019-09-30 08:21:12 ------------------------------------------------------------------------------------
2019-09-30 08:21:12 web-api
error: the server doesn't have a resource type "gateway"
2019-09-30 08:21:12 API explorer: http://10.0.2.15:30770/openapi/ui/
2019-09-30 08:21:12 Metrics: http://10.0.2.15:30770/metrics/application
2019-09-30 08:21:12 Sample API: curl http://10.0.2.15:30770/web-api/v1/getmultiple
2019-09-30 08:21:12 ------------------------------------------------------------------------------------
2019-09-30 08:21:12 web-app
error: the server doesn't have a resource type "gateway"
2019-09-30 08:21:13 Ingress not available. Run scripts/deploy-istio-ingress-v1.sh
2019-09-30 08:21:13 ------------------------------------------------------------------------------------

Thank you for any ideas!

Harald-U commented 4 years ago

What Kubernetes platform are you using, Minikube? Which version of Minikube, which version of Kubernetes does it start? Which version of Istio did you install?

jaerdoe commented 4 years ago

I am using Minikube v1.3.1 on Ubuntu 18.04 Kubernetes version is 1.15.2 on Docker 19.03.2 Istio version is 1.1.5

Harald-U commented 4 years ago

I am using Minikube 1.4.0 on Fedora 30. K8s is version 1.16.0. Istio is 1.3.0 I am currently in the process of running through the Workshop again because we found issues with the deployments in newer versions of Kubernetes. ("no matches for kind "Deployment" in version "apps/v1beta1") But I can run the scripts/deploy-istio-ingress-v1.sh command without problems, this is strange. When you do a kubectl get pod -n istio-system can you see 'istio-ingressgateway-xxx' ?

jaerdoe commented 4 years ago

The output is No resources found in istio-system namespace.

Harald-U commented 4 years ago

Then it seems like you haven't installed Istio into your K8s cluster. Sorry, I first posted the wrong document, this should be correct: Did you follow this document https://github.com/IBM/cloud-native-starter/blob/master/documentation/SetupLocalEnvironment.md starting with Step "Istio"?

jaerdoe commented 4 years ago

You are right, Istio was not installed properly, thanks for your help!