console
console copied to clipboard
The container log path is not entered for verification
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
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.2.1-rc.3
/kind bug /@kubesphere/sig-console /priority medium
/assign
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.
For more details, please see https://kubernetes.io/docs/concepts/cluster-administration/logging/#sidecar-container-with-logging-agent