Skip to main content

SFTPConnection

Checks the contents of a folder over SFTP for size, age and count.

See Folder for a full description.

sftp-folder-check.yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: sftp-check
spec:
interval: 30
folder:
- path: /tmp
name: sample sftp check
maxCount: 10
sftpConnection:
host: 192.168.1.5
auth:
username:
valueFrom:
secretKeyRef:
name: sftp-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: sftp-credentials
key: PASSWORD
FieldDescriptionSchemeRequired
nameName of the checkstringYes
pathA path to the remote folderstringYes
sftpConnectionSFTP connection detailsSFTPConnectionYes
*All other fields available in the folder checkFolder

SFTP Connection

FieldDescriptionScheme
connectionPath of existing connection e.g. connection://sftp/instance
Mutually exclusive with username
Connection
usernameutually exclusive with connectionEnvVar
password Mutually exclusive with connection EnvVar
hostCustom AWS Cloudwatch endpointstring
portDefault to 22int