-
Notifications
You must be signed in to change notification settings - Fork 0
/
Deployment-nginx.yaml
55 lines (53 loc) · 1.39 KB
/
Deployment-nginx.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: webscreensaver
name: webscreensaver
namespace: pigallery2
spec:
replicas: 1
selector:
matchLabels:
app: webscreensaver
template:
metadata:
labels:
app: webscreensaver
spec:
volumes:
- name: nginx-configuration
configMap:
name: nginx-configuration # place ConfigMap `nginx-conf` on /etc/nginx
items:
- key: nginx.conf
path: nginx.conf
- name: index-html
configMap:
name: nginx-configuration
items:
- key: index.html
path: index.html
- name: log
emptyDir: {}
containers:
- name: nginx
image: nginx:mainline
ports:
- containerPort: 80
volumeMounts:
- mountPath: /etc/nginx # mount nginx-conf volumn to /etc/nginx
readOnly: true
name: nginx-configuration
- mountPath: /var/www # mount nginx-conf volumn to /etc/nginx
readOnly: true
name: index-html
- mountPath: /var/log/nginx
name: log
resources: {}
- name: imagery
image: h2non/imaginary:latest
args: ["-enable-url-source"]
resources: {}
ports:
- containerPort: 9000