-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-deployment.yaml
52 lines (52 loc) · 1.1 KB
/
nginx-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.wger.service: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
io.wger.service: nginx
strategy:
type: Recreate
template:
metadata:
labels:
io.wger.service: nginx
spec:
containers:
# - image: nginx
- image: nginx-wger
imagePullPolicy: "IfNotPresent"
# name: nginx
name: nginx-wger
ports:
- containerPort: 80
resources: {}
volumeMounts:
- mountPath: /wger/static
name: static
readOnly: true
- mountPath: /wger/media
name: media
readOnly: true
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: nginx-config
configMap:
name: prod-env
- name: nginx-default
configMap:
name: prod-env
- name: static
persistentVolumeClaim:
claimName: static
readOnly: true
- name: media
persistentVolumeClaim:
claimName: media
readOnly: true
status: {}