tvl-depot/nginx/nginx-rc.yaml

54 lines
1.3 KiB
YAML
Raw Normal View History

2016-03-01 01:11:36 +01:00
---
apiVersion: v1
kind: ReplicationController
metadata:
2016-03-03 22:52:59 +01:00
name: nginx-v3
2016-03-01 01:11:36 +01:00
labels:
app: nginx
version: 1.9.11
2016-03-03 22:52:59 +01:00
spec: v3
2016-03-01 01:11:36 +01:00
spec:
replicas: 2
selector:
app: nginx
2016-03-03 22:52:59 +01:00
rcv: v3
2016-03-01 01:11:36 +01:00
template:
metadata:
labels:
app: nginx
lb-target: nginx
2016-03-03 22:52:59 +01:00
rcv: v3
2016-03-01 01:11:36 +01:00
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.d
2016-03-02 15:31:10 +01:00
- name: nginx-logs
mountPath: /var/log/nginx
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
- 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: {}