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
| Field | Description | Scheme | Required | 
|---|---|---|---|
name | Name of the check | string | Yes | 
path | A path to a shared windows folder e.g. smb://host/folder | string | Yes | 
smbConnection | SMB connection details | SMBConnection | |
* | All other fields available in the folder check | Folder | 
SMB Connection
| Field | Description | Scheme | 
|---|---|---|
connection | Path of existing connection e.g. connection://windows/svc-account Mutually exclusive with username and password  | Connection | 
username | EnvVar | |
password | EnvVar | |
domain | Windows domain name | string | 
port | Default to 445 | int |