Newer
Older
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: res-client-deployment
spec:
replicas: 1
selector:
matchLabels:
app: res-client
template:
metadata:
labels:
app: res-client
spec:
volumes:
- name: res-pvc-files
persistentVolumeClaim:
claimName: pvc-01-ns-res-$NAMESPACE_ENV-syn-claim
containers:
- name: res-client
image: registry.forge.grandlyon.com/web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client:$IMAGE_TAG
imagePullPolicy: Always
volumeMounts:
- mountPath: /usr/share/nginx/html/shared
name: res-pvc-files
subPath: "shared"
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
httpGet:
path: /
port: 8080
livenessProbe:
httpGet:
path: /
port: 8080
resources:
requests:
memory: 50Mi
cpu: 50m
limits:
memory: 50Mi
cpu: 50m
imagePullSecrets:
- name: forge-secret
---
kind: Service
apiVersion: v1
metadata:
name: res-client-service
spec:
selector:
app: res-client
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: res-client-route
spec:
host: resin${URL_ENV_SUFFIX}${URL_APPS_SUFFIX}.grandlyon.com
to:
kind: Service
name: res-client-service
port:
targetPort: 8080
wildcardPolicy: None
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
certificate: $HTTPS_CERTIFICATE