Pablo Solar Vilariño
2020-06-11 d4a550812d90f1f23e74ba6bae81b74d74bec907
commit | author | age
14204b 1 apiVersion: apps/v1
PSV 2 kind: Deployment
3 metadata:
4   name: news
5 spec:
6   selector:
7     matchLabels:
8       app: news
9   replicas: 1
10   template:
11     metadata:
12       labels:
13         app: news
14     spec:
15       containers:
16         - name: news
17           image: quay.io/redhattraining/ossm-python-flask-gossip:2.0
18           imagePullPolicy: Always
19           ports:
20             - containerPort: 5000
21 ---
22 apiVersion: v1
23 kind: Service
24 metadata:
25   labels:
26     app: news
27   name: news
28 spec:
29   ports:
30     - port: 5000
31       protocol: TCP
32       targetPort: 5000
33   selector:
34     app: news
35 ---
36 kind: Route
37 apiVersion: route.openshift.io/v1
38 metadata:
39   name: news
40   labels:
41     app: news
42 spec:
43   to:
44     kind: Service
45     name: news
46   port:
47     targetPort: 5000