[nginx] Use Deployment resource instead of RC

This commit is contained in:
Vincent Ambo 2016-09-21 01:32:54 +02:00
parent 8bc007c7f3
commit 7e12db2454
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
2 changed files with 13 additions and 12 deletions

View file

@ -1,57 +0,0 @@
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-v4
labels:
app: nginx
version: 1.9.12
spec: v4
spec:
replicas: 2
selector:
app: nginx
rcv: v4
template:
metadata:
labels:
app: nginx
lb-target: nginx
rcv: v4
spec:
containers:
- image: nginx:1.9.11
name: nginx
volumeMounts:
- name: tazj-in-tls
mountPath: /etc/nginx/ssl/tazj.in
- name: nginx-dhparam
mountPath: /etc/nginx/ssl/dhparam
- name: nginx-config
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
- image: reactivehub/google-fluentd-catch-all
name: google-log-agent
volumeMounts:
- name: nginx-logs
mountPath: /var/log/nginx
volumes:
- name: tazj-in-tls
secret:
secretName: tazj-in-tls
- name: nginx-dhparam
secret:
secretName: nginx-dhparam
- name: nginx-config
secret:
secretName: nginx-config
- name: nginx-logs
emptyDir: {}