Browse Source

Updating fluentd docker container mount path

Eric Wolinetz 7 years ago
parent
commit
d8ca8e24cd

+ 2 - 2
roles/openshift_logging_fluentd/templates/2.x/fluentd.j2

@@ -65,7 +65,7 @@ spec:
         - name: varlog
           mountPath: /var/log
         - name: varlibdockercontainers
-          mountPath: /var/lib/docker/containers
+          mountPath: /var/lib/docker
           readOnly: true
         - name: config
           mountPath: /etc/fluent/configs.d/user
@@ -227,7 +227,7 @@ spec:
           path: /var/log
       - name: varlibdockercontainers
         hostPath:
-          path: /var/lib/docker/containers
+          path: /var/lib/docker
       - name: config
         configMap:
           name: logging-fluentd

+ 2 - 2
roles/openshift_logging_fluentd/templates/5.x/fluentd.j2

@@ -65,7 +65,7 @@ spec:
         - name: varlog
           mountPath: /var/log
         - name: varlibdockercontainers
-          mountPath: /var/lib/docker/containers
+          mountPath: /var/lib/docker
           readOnly: true
         - name: config
           mountPath: /etc/fluent/configs.d/user
@@ -224,7 +224,7 @@ spec:
           path: /var/log
       - name: varlibdockercontainers
         hostPath:
-          path: /var/lib/docker/containers
+          path: /var/lib/docker
       - name: config
         configMap:
           name: logging-fluentd