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
connection

The connection url to use, mutually exclusive with host and port

Connection

host

SFTP host

string

port

SFTP port

integer

username

EnvVar

password

EnvVar