sftp-server

by sj14

Helm chartv0.8.1Apache-2.0Verified publisher

A Helm chart for https://github.com/atmoz/sftp

About this chart

sftp-server

A Helm chart for https://github.com/atmoz/sftp

Source Code

Installation

helm repo add sj14 https://sj14.github.io/helm-charts
helm upgrade sftp --install sj14/sftp-server

Values

KeyTypeDefaultDescription
affinityobject{}
extraContainerslist[]Additional containers of the pod.
extraInitContainerslist[]Additional Init containers of the pod.
extraManifestslist[]Extra manifests to deploy as an array
extraVolumeMountslist[]Additional volume mounts of the pod.
extraVolumeslist[]Additional volumes of the pod.
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/atmoz/sftp/alpine"
image.tagstring"latest"
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
persistentVolume.accessModeslist["ReadWriteOnce"]Must match those of existing PV or dynamic provisioner (Kubernetes docs)
persistentVolume.annotationsobject{}
persistentVolume.enabledboolfalse
persistentVolume.existingClaimstring""If defined, PVC must be created manually before volume will be bound
persistentVolume.sizestring"8Gi"
persistentVolume.storageClassstringnilIf defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack)
persistentVolume.subPathstring""Subdirectory of SFTP server data Persistent Volume to mount Useful if the volume's root directory is not empty
persistentVolume.volumeBindingModestringnilIf defined, volumeBindingMode: If undefined (the default) or set to null, no volumeBindingMode spec is set, choosing the default mode.
podAnnotationsobject{}
podSecurityContextobject{}
probes.livenessbooltrueEnable liveness probe
probes.readinessbooltrueEnable readiness probe
probes.startupbooltrueEnable startup probe
replicaCountint1
resourcesobject{}
securityContextobject{}
service.annotationsobject{}Annotations to add to the service
service.externalTraffic.enabledboolfalseexternalTrafficPolicy (Kubernetes docs)
service.externalTraffic.policystring"Local"
service.loadBalancerIPint0When using the LoadBalancer type.
service.nodePortint0When using the NodePort type, you can specify a fixed port (Kubernetes docs)
service.portint22
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
sftp.hostKeys.ed25519object{"key":"","secretKeyRef":""}private ED25519 host key. Choose between adding the key itself or reference a already existing key.
sftp.hostKeys.ed25519.keystring""The plain key
sftp.hostKeys.ed25519.secretKeyRefstring""Reference to and existing secret with an "ssh_host_ed25519_key" data key and base64 encrypted value.
sftp.hostKeys.rsaobject{"key":"","secretKeyRef":""}private RSA host key. Choose between adding the key itself or reference a already existing key.
sftp.hostKeys.rsa.keystring""The plain key
sftp.hostKeys.rsa.secretKeyRefstring""Reference to and existing secret with an "ssh_host_rsa_key" data key and base64 encrypted value.
sftp.usersSecretstring""Reference to and existing secret that provides users' configuration. If present takes precedence over .Values.sftp.users configuration, whose schema is expected to use within a users.conf key
sftp.users[0].dirs[0]string"upload"
sftp.users[0].gidstring""
sftp.users[0].namestring"demo"
sftp.users[0].passstring"demo"
sftp.users[0].passEncryptedboolfalsepassword is encrypted (doc)
sftp.users[0].pubKeyslist[]public user keys (doc)
sftp.users[0].uidstring""
tolerationslist[]
updateStrategyobject{"type":"RollingUpdate"}Define strategy update of the deployment (Kubernetes docs)

Deploy sftp-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sftp-server on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsftp-server is pinned at v0.8.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply