2016-03-01 01:11:36 +01:00
|
|
|
---
|
2016-09-21 01:32:54 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2016-03-01 01:11:36 +01:00
|
|
|
metadata:
|
2016-09-21 01:32:54 +02:00
|
|
|
name: nginx
|
2016-03-01 01:11:36 +01:00
|
|
|
labels:
|
|
|
|
app: nginx
|
2016-03-23 15:13:06 +01:00
|
|
|
spec: v4
|
2016-03-01 01:11:36 +01:00
|
|
|
spec:
|
2016-09-21 01:32:54 +02:00
|
|
|
replicas: 1
|
2016-03-01 01:11:36 +01:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: nginx
|
|
|
|
spec:
|
|
|
|
containers:
|
2016-09-21 01:32:54 +02:00
|
|
|
- image: nginx:1.9.12
|
2016-03-01 01:11:36 +01:00
|
|
|
name: nginx
|
|
|
|
volumeMounts:
|
|
|
|
- name: tazj-in-tls
|
|
|
|
mountPath: /etc/nginx/ssl/tazj.in
|
2016-09-21 01:32:54 +02:00
|
|
|
- name: www-tazj-in-tls
|
|
|
|
mountPath: /etc/nginx/ssl/www.tazj.in
|
2016-03-01 01:11:36 +01:00
|
|
|
- name: nginx-dhparam
|
|
|
|
mountPath: /etc/nginx/ssl/dhparam
|
|
|
|
- name: nginx-config
|
2016-03-23 15:13:06 +01:00
|
|
|
mountPath: /etc/nginx/conf
|
2016-03-02 15:31:10 +01:00
|
|
|
- name: nginx-logs
|
|
|
|
mountPath: /var/log/nginx
|
2016-03-23 15:13:06 +01:00
|
|
|
command:
|
|
|
|
- '/usr/sbin/nginx'
|
|
|
|
- '-c'
|
|
|
|
- '/etc/nginx/conf/main.conf'
|
2016-03-01 01:11:36 +01:00
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
- containerPort: 443
|
2016-03-03 22:52:59 +01:00
|
|
|
- image: reactivehub/google-fluentd-catch-all
|
|
|
|
name: google-log-agent
|
|
|
|
volumeMounts:
|
|
|
|
- name: nginx-logs
|
|
|
|
mountPath: /var/log/nginx
|
2016-03-01 01:11:36 +01:00
|
|
|
volumes:
|
|
|
|
- name: tazj-in-tls
|
|
|
|
secret:
|
|
|
|
secretName: tazj-in-tls
|
2016-09-21 01:32:54 +02:00
|
|
|
- name: www-tazj-in-tls
|
|
|
|
secret:
|
|
|
|
secretName: www-tazj-in-tls
|
2016-03-01 01:11:36 +01:00
|
|
|
- name: nginx-dhparam
|
|
|
|
secret:
|
|
|
|
secretName: nginx-dhparam
|
|
|
|
- name: nginx-config
|
|
|
|
secret:
|
|
|
|
secretName: nginx-config
|
2016-03-02 15:31:10 +01:00
|
|
|
- name: nginx-logs
|
|
|
|
emptyDir: {}
|