Pablo Solar Vilariño
2020-06-11 d4a550812d90f1f23e74ba6bae81b74d74bec907
commit | author | age
fe16c4 1 apiVersion: apps/v1
PSV 2 kind: Deployment
3 metadata:
d4a550 4   name: notification
fe16c4 5 spec:
PSV 6   selector:
7     matchLabels:
d4a550 8       app: notification
fe16c4 9   replicas: 1
PSV 10   template:
11     metadata:
12       labels:
d4a550 13         app: notification
fe16c4 14       annotations:
PSV 15         sidecar.istio.io/inject: "true"
16     spec:
17       containers:
d4a550 18         - name: notification
PSV 19           image: quay.io/redhattraining/ossm-notification-service:1.0
4adf83 20           imagePullPolicy: Always
fe16c4 21           ports:
PSV 22             - containerPort: 8080
23 ---
24 apiVersion: v1
25 kind: Service
26 metadata:
27   labels:
d4a550 28     app: notification
PSV 29   name: notification
fe16c4 30 spec:
PSV 31   ports:
32     - port: 8080
33       protocol: TCP
34       targetPort: 8080
35   selector:
d4a550 36     app: notification
fe16c4 37 ---
PSV 38 apiVersion: networking.istio.io/v1alpha3
39 kind: VirtualService
40 metadata:
d4a550 41   name: notification
fe16c4 42 spec:
PSV 43   hosts:
44     - "*"
45   gateways:
d4a550 46     - adoptapup-gateway
fe16c4 47   http:
PSV 48     - match:
49         - uri:
50             prefix: /notifications
51       route:
52         - destination:
d4a550 53             host: notification
fe16c4 54             port:
PSV 55               number: 8080