-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy-wp-veritas-prod.yaml
112 lines (108 loc) · 2.19 KB
/
deploy-wp-veritas-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# Deployment for wp-veritas (without mongodb because we get it as a service)
#
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
date: 2019-03-11 13:29
deployment.kubernetes.io/revision: '5'
kompose.cmd: kompose convert -f docker-compose.yml -o k8s-2.yml
kompose.version: 1.17.0 (a74acad)
version: 0.0.5
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
version: 0.0.5
name: wp-veritas
namespace: wwp
spec:
replicas: 2
selector:
matchLabels:
app: wp-veritas
template:
metadata:
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
release: wp-veritas-mongo
spec:
containers:
- env:
- name: MONGO_URL
valueFrom:
secretKeyRef:
key: mongo-url
name: wp-veritas
- name: PORT
value: '3000'
- name: ROOT_URL
value: 'https://wp-veritas.128.178.222.83.nip.io/'
image: 'epflsi/wp-veritas:0.1.10'
imagePullPolicy: IfNotPresent
name: pod-wp-veritas
ports:
- containerPort: 3000
protocol: TCP
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
#
# Sevice for wp-veritas
#
---
apiVersion: v1
kind: Service
metadata:
name: service-wp-veritas
namespace: wwp
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
annotations:
authors: idev-fsd
version: 0.0.5
spec:
ports:
- name: "80"
port: 80
protocol: TCP
targetPort: 3000
selector:
app: wp-veritas
jaime: lefromage
type: ClusterIP
#
# Route for wp-veritas
#
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: route-wp-veritas
namespace: wwp
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
annotations:
authors: idev-fsd
version: 0.0.5
spec:
host: wp-veritas.128.178.222.83.nip.io
port:
targetPort: "80"
tls:
termination: edge
to:
kind: Service
name: service-wp-veritas
weight: 100
wildcardPolicy: None