Merge pull request #18 from DavidSouther/fix-recommendation-service
Add Kubernetes Service to Recommendation service
This commit is contained in:
commit
468e8dc781
1 changed files with 15 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue