[nginx] Split config into multiple files

This commit is contained in:
Vincent Ambo 2016-03-23 15:13:06 +01:00
parent 196de92752
commit f3d71cf5fe
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
6 changed files with 116 additions and 66 deletions

View file

@ -2,22 +2,22 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-v3
name: nginx-v4
labels:
app: nginx
version: 1.9.11
spec: v3
version: 1.9.12
spec: v4
spec:
replicas: 2
selector:
app: nginx
rcv: v3
rcv: v4
template:
metadata:
labels:
app: nginx
lb-target: nginx
rcv: v3
rcv: v4
spec:
containers:
- image: nginx:1.9.11
@ -28,9 +28,13 @@ spec:
- name: nginx-dhparam
mountPath: /etc/nginx/ssl/dhparam
- name: nginx-config
mountPath: /etc/nginx/conf.d
mountPath: /etc/nginx/conf
- name: nginx-logs
mountPath: /var/log/nginx
command:
- '/usr/sbin/nginx'
- '-c'
- '/etc/nginx/conf/main.conf'
ports:
- containerPort: 80
- containerPort: 443