While connected to the VKS cluster context where the affected Windows application pods are failing:
MountVolume.SetUp failed for volume <volume name> output kubernetes.io/csi: mounter.SetUpAt failed to check for STAGE_UNSTAGE_VOLUME capability: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix C:\\\\var\\\\lib\\\\kubelet\\\\plugins\\\\smb.csi.ks.io\\\\csi.sock: connect: No connection could be made because the target machine actively refused it."
kubectl get pods -n kube-system -o wide
kubectl logs -n kube-system <csi-smb-node-pod>
IMMDD HH:MM:SS.sssss #### safe_mounter_host_process_windows.go:69] begin to mount \\<folder path> on c:\var\lib\kubelet\plugins\kubernetes.io\csi\smb.csi.k8s.io\<id>\globalmount
runtime: VirtualAlloc of #### bytes failed with errno=1455
fatal error: out of memory
vSphere Supervisor
Nodes using Windows OS
Pods using csi-smb driver for volume management
The csi-smb-node pods managing volumes through SMB are hitting or exceeding its configured memory limits.
Increase the memory limit on the csi-smb-node daemonset which controls and manages the configuration for the csi-smb-node pods.
kubectl get daemonset -n kube-system
kubectl edit daemonset -n kube-system <csi-smb-node daemonset>
Containers:
...
smb:
Image: <smb image>
State: Running
Limits:
memory: <CHANGE ME>
kubectl get pods -n kube-system -o wide
kubectl get pods -n <namespace for smb driver reliant pods>
kubectl describe daemonset -n kube-system <csi-smb-node daemonset>
kubectl describe pod -n kube-system <csi-smb-node pod>The csi-smb driver and daemonset are not owned by VMware by Broadcom.
We recommend that questions or concerns on its configuration should be brought up to the csi-smb maintainers and Microsoft Windows.