Skip to main content

Windows File Share (SMB/CIFS)

Checks the contents of a Windows / CIFS file share for size, age and count.

See Folder for a full description.

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: smb-check
spec:
interval: 30
folder:
- path: smb:\\192.168.1.9\Some Public Folder\somedir
name: sample smb check
smbConnection:
username:
valueFrom:
secretKeyRef:
name: smb-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: smb-credentials
key: PASSWORD
minAge: 10h
FieldDescriptionSchemeRequired
nameName of the checkstringYes
pathA path to a shared windows folder e.g. smb://host/folderstringYes
smbConnectionSMB connection detailsSMBConnection
*All other fields available in the folder checkFolder

SMB Connection

FieldDescriptionScheme
connectionPath of existing connection e.g. connection://windows/svc-account
Mutually exclusive withusername and password
Connection
username Mutually exclusive with connection EnvVar
password Mutually exclusive with connection EnvVar
domainWindows domain namestring
portDefault to 445int