Sfoglia il codice sorgente

Merge pull request #8375 from ewolinetz/fluentd_docker_mount_fix

Updating fluentd docker container mount path
OpenShift Merge Robot 6 anni fa
parent
commit
b72b82f1d5

+ 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