-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx-locked-n-loaded-02.yaml
39 lines (39 loc) · 1.02 KB
/
nginx-locked-n-loaded-02.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
apiVersion: v1
kind: Pod
metadata:
name: nginx-locked-n-loaded-secrets
labels:
app: nginx-configured
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- name: nginx-proxy-config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: my-index-file
mountPath: /var/www/index.html
subPath: index.html
- name: static-demo-data
mountPath: /var/www/static/nginx.txt
subPath: nginx.txt
- name: top-secret-keys
mountPath: /etc/nginx/ssl
readOnly: true
volumes:
- name: nginx-proxy-config
configMap:
name: nginx-conf
- name: my-index-file
configMap:
name: index-file
- name: static-demo-data
configMap:
name: nginx-txt
- name: top-secret-keys
secret:
secretName: webby-keys