console icon indicating copy to clipboard operation
console copied to clipboard

The container log path is not entered for verification

Open jioce opened this issue 3 years ago • 3 comments

Describe the bug There is a deployment demo, the mirror is "alpine", and the startup command is set to "/bin/sh -c,if [ ! -d /data/log ];then mkdir -p /data/log;fi; while true; do date >> /data/log/app-test.log; sleep 30;done" 1、Click Edit Settings, select the storage volume, and turn on the disk log collection 2、Click Mount storage volume, select temporary storage volume, set to read and write, mount path to /data/log, do not fill in container log path,click save 3、 Saved successfully, check the container log, there is no log information

image

image

image

Versions used(KubeSphere/Kubernetes) KubeSphere: v3.2.1-rc.3

/kind bug /@kubesphere/sig-console /priority medium

jioce avatar Dec 15 '21 07:12 jioce

/assign

weili520 avatar Dec 22 '21 03:12 weili520

I think you should follow the steps and try again, ref https://v2-1.docs.kubesphere.io/docs/zh-CN/workload/logs-on-disk/ Logsidecar is designed to collect logs generated by other containers.

wenchajun avatar Dec 22 '21 07:12 wenchajun

For more details, please see https://kubernetes.io/docs/concepts/cluster-administration/logging/#sidecar-container-with-logging-agent

wenchajun avatar Dec 27 '21 06:12 wenchajun