forked from apache/openwhisk-deploy-kube
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnginx.yml
44 lines (44 loc) · 956 Bytes
/
nginx.yml
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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
namespace: openwhisk
labels:
name: nginx
spec:
replicas: 1
template:
metadata:
labels:
name: nginx
spec:
restartPolicy: Always
volumes:
- name: nginx-certs
secret:
secretName: nginx
- name: nginx-conf
configMap:
name: nginx
- name: logs
emptyDir: {}
containers:
- name: nginx
imagePullPolicy: IfNotPresent
image: nginx:1.11
ports:
- name: http
containerPort: 80
- name: http-api
containerPort: 443
- name: https-admin
containerPort: 8443
volumeMounts:
- name: nginx-conf
mountPath: "/etc/nginx/nginx.conf"
subPath: "nginx.conf"
- name: nginx-certs
mountPath: "/etc/nginx/certs"
- name: logs
mountPath: "/logs"