/area build
/area networking
/kind bug
/kind doc
Expected Behavior
I build and deploy the sample app and when accessing the app I can get stock prices for specified ticker.
Actual Behavior
$ curl --header "Host:$SERVICE_HOST" http://${SERVICE_IP}
Welcome to the stock app!
$ curl --header "Host:$SERVICE_HOST" http://${SERVICE_IP}/stock/GOOG
stock not found for ticker : GOOG
Steps to Reproduce the Problem
- Follow the instruction for the stock-rest-app sample
- curl the sample app's endpoint with a ticker
- the ticker is not found message should show
Additional Info
Looks like an issue with Istio egress configuration - not sure if this is something the developer has to configure, but if the developer is expected to do this then that should be added to the sample.
I played around with a few different egress rules and this one seemed to work:
apiVersion: config.istio.io/v1alpha2
kind: EgressRule
metadata:
name: stock-rest-app-egress-tcp
spec:
destination:
service: 35.225.233.74/32
ports:
- port: 443
protocol: tcp
I now get:
$ curl --header "Host:$SERVICE_HOST" http://${SERVICE_IP}/stock/GOOG
stock price for ticker GOOG is 1097.86
/area build
/area networking
/kind bug
/kind doc
Expected Behavior
I build and deploy the sample app and when accessing the app I can get stock prices for specified ticker.
Actual Behavior
Steps to Reproduce the Problem
Additional Info
Looks like an issue with Istio egress configuration - not sure if this is something the developer has to configure, but if the developer is expected to do this then that should be added to the sample.
I played around with a few different egress rules and this one seemed to work:
I now get: