-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy-wp-veritas-test.yaml
138 lines (134 loc) · 2.67 KB
/
deploy-wp-veritas-test.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#
# 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-test
spec:
replicas: 2
selector:
matchLabels:
app: wp-veritas
template:
metadata:
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
deployment: wp-veritas
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/'
# - name: ROOT_URL
# value: 'https://wp-veritas.epfl.ch/'
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: wp-veritas
namespace: wwp-test
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
deployment: wp-veritas
type: ClusterIP
#
# Route for wp-veritas
#
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: route-wp-veritas
namespace: wwp-test
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: wp-veritas
weight: 100
wildcardPolicy: None
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: epfl-wp-veritas
namespace: wwp-test
labels:
app: wp-veritas
author: gcharmier
team: idev-fsd
annotations:
authors: idev-fsd
version: 0.0.5
spec:
host: wp-veritas.epfl.ch
port:
targetPort: "80"
tls:
termination: edge
to:
kind: Service
name: wp-veritas
weight: 100
wildcardPolicy: None