-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathdeployment-storage-exposer.yaml
More file actions
87 lines (84 loc) · 1.7 KB
/
deployment-storage-exposer.yaml
File metadata and controls
87 lines (84 loc) · 1.7 KB
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: storage-exposer
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: storage-exposer
template:
metadata:
labels:
app: storage-exposer
spec:
automountServiceAccountToken: false
volumes:
- name: docroot
persistentVolumeClaim:
claimName: coe-isos
containers:
- image: registry.access.redhat.com/ubi8/nginx-120
name: nginx
resources:
limits:
ephemeral-storage: 40Mi
cpu: 0.5
memory: "512Mi"
requests:
ephemeral-storage: 20Mi
cpu: 0.5
memory: "512Mi"
volumeMounts:
- name: docroot
mountPath: /opt/app-root/src/
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
command:
- /bin/sh
- -c
- |
echo "location / { autoindex on; }" > ${NGINX_DEFAULT_CONF_PATH}/index-on.conf
/usr/libexec/s2i/run
triggers:
- type: ConfigChange
---
apiVersion: v1
kind: Service
metadata:
labels:
app: storage-exposer
name: storage-exposer
spec:
ports:
- name: 8080-8080
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: storage-exposer
sessionAffinity: None
type: ClusterIP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: storage-exposer
name: storage-exposer
spec:
port:
targetPort: 8080
to:
kind: "Service"
name: storage-exposer
weight: null
tls:
termination: Edge
insecureEdgeTerminationPolicy: Redirect