log-pilot采用FILE模式将日志写入宿主机磁盘
ChaoYang-OPS opened this issue · comments
time="2020-08-28T10:40:06+08:00" level=error msg="fail to process event: {start 6c81e0af2745ef43511cf8f258bf7e0a18c38c2bd026768cb3c05e362478bbcb sha256:5a1def69e6ffb851f358bfd252fd365b73a2d731a77016d9b5113155e3200353 container start {6c81e0af2745ef43511cf8f258bf7e0a18c38c2bd026768cb3c05e362478bbcb map[io.kubernetes.container.logpath:/var/log/pods/prod_xxx-69b68fbcdd-9f792_7bc60126-479a-44d4-861e-64ff128dfe18/vuc-center-service/0.log io.kubernetes.pod.namespace:prod io.kubernetes.sandbox.id:b5fddd6cc26be9f39ba56980a153a2565cdf3197ec02924110a40f350c8ceaaa image:sha256:5a1def69e6ffb851f358bfd252fd365b73a2d731a77016d9b5113155e3200353 annotation.io.kubernetes.container.ports:[{"containerPort":9191,"protocol":"TCP"}] annotation.io.kubernetes.container.terminationMessagePath:/dev/termination-log annotation.io.kubernetes.pod.terminationGracePeriod:30 io.kubernetes.docker.type:container io.kubernetes.pod.name:vuc-center-service-69b68fbcdd-9f792 io.kubernetes.pod.uid:7bc60126-479a-44d4-861e-64ff128dfe18 name:k8s_vuc-center-service_vuc-center-service-69b68fbcdd-9f792_prod_7bc60126-479a-44d4-861e-64ff128dfe18_0 annotation.io.kubernetes.container.hash:54089d0e annotation.io.kubernetes.container.restartCount:0 annotation.io.kubernetes.container.terminationMessagePolicy:File io.kubernetes.container.name:vuc-center-service]} local 1598582406 1598582406936436034}, in log vucenter: /opt/logs/x/_.log is not mount on host"
这种情况有人遇到 过吗
遇到了,做过目录映射/:/host,奇怪