You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new vCluster and deployed a deployment but the pod goes in container creating state with the below error: Warning FailedMount 22s (x11 over 6m34s) kubelet MountVolume.SetUp failed for volume "plogs" : hostPath type check failed: /tmp/vcluster/v-cluster-only-ic-sync/testt/log/pods is not a directory
I tried changing the type of volume to DirectoryOrCreate, the pod came up in running state but in the fluentbit container no logs are visible, following are the error logs of fluentbit-container: [2024/05/06 12:51:09] [error] [input:tail:tail.0] read error, check permissions: /var/log/pods/dgdr-6868bbb7-hrxlz_fb217ac7-d1ff-47f7-9af7-abb76a8c707f/*.log [2024/05/06 12:51:09] [ warn] [input:tail:tail.0] error scanning path: /var/log/pods/dgdr-6868bbb7-hrxlz_fb217ac7-d1ff-47f7-9af7-abb76a8c707f/*.log
What did you expect to happen?
Ideally the deployment should create the pod and i should see the logs in the fluent bit container, Also i wanted to know how this path is getting created "/tmp/vcluster/v-cluster-only-ic-sync/testt/log/pods" in vCluster as in my deployment volume is as below volumes: - name: podlogs hostPath: path: /var/log/pods type: Directory
How can we reproduce it (as minimally and precisely as possible)?
Deploy a K8s Deployment with fluentbit as a side car container which has volumeMounts volumeMounts: - name: podlogs mountPath: /var/log/pods
and deployment has the volume volumes: - name: podlogs hostPath: path: /var/log/pods type: Directory
Ideally this deployment should get deployed and we should be able to see logs in the fluentbit side car container
akusingh-tibco
changed the title
MountVolume.SetUp failed for volume "plogs" of a deployment in vCluster
MountVolume.SetUp failed for volume "podlogs" of a deployment in vCluster
May 7, 2024
What happened?
I created a new vCluster and deployed a deployment but the pod goes in container creating state with the below error:
Warning FailedMount 22s (x11 over 6m34s) kubelet MountVolume.SetUp failed for volume "plogs" : hostPath type check failed: /tmp/vcluster/v-cluster-only-ic-sync/testt/log/pods is not a directory
I tried changing the type of volume to DirectoryOrCreate, the pod came up in running state but in the fluentbit container no logs are visible, following are the error logs of fluentbit-container:
[2024/05/06 12:51:09] [error] [input:tail:tail.0] read error, check permissions: /var/log/pods/dgdr-6868bbb7-hrxlz_fb217ac7-d1ff-47f7-9af7-abb76a8c707f/*.log [2024/05/06 12:51:09] [ warn] [input:tail:tail.0] error scanning path: /var/log/pods/dgdr-6868bbb7-hrxlz_fb217ac7-d1ff-47f7-9af7-abb76a8c707f/*.log
What did you expect to happen?
Ideally the deployment should create the pod and i should see the logs in the fluent bit container, Also i wanted to know how this path is getting created
"/tmp/vcluster/v-cluster-only-ic-sync/testt/log/pods"
in vCluster as in my deployment volume is as belowvolumes: - name: podlogs hostPath: path: /var/log/pods type: Directory
How can we reproduce it (as minimally and precisely as possible)?
Deploy a K8s Deployment with fluentbit as a side car container which has volumeMounts
volumeMounts: - name: podlogs mountPath: /var/log/pods
and deployment has the volume
volumes: - name: podlogs hostPath: path: /var/log/pods type: Directory
Ideally this deployment should get deployed and we should be able to see logs in the fluentbit side car container
Anything else we need to know?
No response
Host cluster Kubernetes version
Host cluster Kubernetes distribution
vlcuster version
Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)
OS and Arch
The text was updated successfully, but these errors were encountered: