diff options
author | Vincent Ambo <tazjin@gmail.com> | 2016-03-03T21·52+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2016-03-03T21·54+0100 |
commit | 47ddea263254ae4af52037f795c4842971cc23f3 (patch) | |
tree | ebf97c1e24ccc3ebafc6b789588a2c31afb0b618 | |
parent | 2ff9b1bd3c4537b1102006f0c2c54ff1ea631548 (diff) |
[nginx] Add Google log agent
-rw-r--r-- | nginx/nginx-rc.yaml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nginx/nginx-rc.yaml b/nginx/nginx-rc.yaml index e876ae09374a..3f3a923efe3a 100644 --- a/nginx/nginx-rc.yaml +++ b/nginx/nginx-rc.yaml @@ -2,22 +2,22 @@ apiVersion: v1 kind: ReplicationController metadata: - name: nginx + name: nginx-v3 labels: app: nginx version: 1.9.11 - spec: v2 + spec: v3 spec: replicas: 2 selector: app: nginx - rcv: v2 + rcv: v3 template: metadata: labels: app: nginx lb-target: nginx - rcv: v2 + rcv: v3 spec: containers: - image: nginx:1.9.11 @@ -34,6 +34,11 @@ spec: 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: |