diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2018-06-15 00:24:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-15 00:24:57 +0000 |
commit | 1f543c55dd426a34ab3cafa514fa446c22b6fa03 (patch) | |
tree | ea0ac52ae4a69aca9f96e0c857ca02f623d674ba | |
parent | 191c9f99f6d55b5ef0c6ef62968fb93796b0737a (diff) | |
parent | 4ea5a8a990601108a9eedf864c1f5bf6eaed8ee5 (diff) |
Merge "Streaming logs from application container"
-rw-r--r-- | clover/logging/install/proxy-access-control-sidecar.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/clover/logging/install/proxy-access-control-sidecar.yml b/clover/logging/install/proxy-access-control-sidecar.yml new file mode 100644 index 0000000..833f9f7 --- /dev/null +++ b/clover/logging/install/proxy-access-control-sidecar.yml @@ -0,0 +1,32 @@ +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: proxy-access-control + labels: + app: proxy-access-control +spec: + template: + metadata: + labels: + app: proxy-access-control + spec: + containers: + - name: proxy-access-control + image: opnfv/clover-ns-nginx-proxy:latest + ports: + - containerPort: 50054 + - containerPort: 9180 +# inject nginx access log streaming + volumeMounts: + - name: nginxlog + mountPath: /var/log/nginx + - name: nginx-access-log + image: busybox + args: [/bin/sh, -c, 'tail -n+1 -f /var/log/nginx/access.log'] + volumeMounts: + - name: nginxlog + mountPath: /var/log/nginx + volumes: + - name: nginxlog + emptyDir: {} |