From ba5737abdd0ab1e20d2a891a0c9b7dbff8b93137 Mon Sep 17 00:00:00 2001 From: bragi92 Date: Tue, 17 Jul 2018 16:05:10 -0700 Subject: [PATCH] Add container log mount path in yaml (#127) * Add container log mount path * Add container log mount path * Update ocp-omsagent.yaml * Update ocp-ds-omsagent.yaml --- OpenShift/ocp-ds-omsagent.yaml | 5 +++++ OpenShift/ocp-omsagent.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/OpenShift/ocp-ds-omsagent.yaml b/OpenShift/ocp-ds-omsagent.yaml index 814135a6..acfb7e62 100644 --- a/OpenShift/ocp-ds-omsagent.yaml +++ b/OpenShift/ocp-ds-omsagent.yaml @@ -33,6 +33,8 @@ spec: - mountPath: /etc/omsagent-secret name: omsagent-secret readOnly: true + - mountPath: /var/lib/docker/containers + name: containerlog-path livenessProbe: exec: command: @@ -48,3 +50,6 @@ spec: - name: omsagent-secret secret: secretName: omsagent-secret + - name: containerlog-path + hostPath: + path: /var/lib/docker/containers diff --git a/OpenShift/ocp-omsagent.yaml b/OpenShift/ocp-omsagent.yaml index d442b511..0a5b50b9 100644 --- a/OpenShift/ocp-omsagent.yaml +++ b/OpenShift/ocp-omsagent.yaml @@ -35,6 +35,8 @@ spec: volumeMounts: - mountPath: /var/run/docker.sock name: docker-sock + - mountPath: /var/lib/docker/containers + name: containerlog-path livenessProbe: exec: command: @@ -47,3 +49,6 @@ spec: - name: docker-sock hostPath: path: /var/run/docker.sock + - name: containerlog-path + hostPath: + path: /var/lib/docker/containers