Merge pull request #18 from DavidSouther/fix-recommendation-service

Add Kubernetes Service to Recommendation service
This commit is contained in:
David Souther 2019-08-05 15:20:33 -04:00 committed by GitHub
commit 468e8dc781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,21 @@ spec:
memory: 450Mi memory: 450Mi
revisionHistoryLimit: 1 revisionHistoryLimit: 1
--- ---
#In order for istio to route traffic correctly, it needs a kubernetes service to route traffic to
#the workloads in question.
apiVersion: v1
kind: Service
metadata:
name: recommendationservice
spec:
type: ClusterIP
selector:
app: recommendationservice
ports:
- name: grpc
port: 8080
targetPort: 8080
---
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: VirtualService kind: VirtualService
metadata: metadata: