crushmft27

by crushftp

Helm chartv0.1.1App 27.0.0_2188Verified publisher

CrushMFT 27 on Kubernetes (the program read-only in the image; the server's folder, with its data and its signed program, on a volume)

About this chart

crushmft27

CrushMFT 27 on Kubernetes: one server, the program read-only in the image crushftp/crushmft27, the state on a volume.

How it starts

The image's own start (CrushContainer.jar) runs in the working folder /app/CrushMFT27, the volume: a CrushMFT folder like any install, the program at its top and other versions kept in backup/updates/. It puts the image's signed version in place there as an update with a restart does (the version before is kept to go back to), keeps a newer version of the volume's (the in-app updater can fetch one), creates the admin crushadmin on the first start with the password of the chart's Secret, and runs CrushLauncher. There is no init container, no Job and no shell. The server's log also goes to the container's standard out (kubectl logs).

Install

helm repo add crushftp https://crushftp.com/charts
helm repo update
helm install crushmft27 crushftp/crushmft27 --namespace crushftp --create-namespace
kubectl get secret crushmft27-initial-password -n crushftp -o jsonpath='{.data.password}' | base64 -d

Values

ValueDefaultMeaning
image.repository, image.tag, image.pullPolicycrushftp/crushmft27, latest, AlwaysThe image. Pin a tag (27.0.0_257) and use IfNotPresent for repeatable installs.
license.name, .email, .codenoneThe licence, as split_prefs files. Without it: a 30 day trial.
adminPassword.existingSecret, .existingSecretKeynone, passwordA Secret of your own for the first admin's password, instead of the chart's.
inAppUpdatertrueCrushMFT's updater. false: the image tag alone decides the version.
split_prefsnoneMore settings, as split_prefs files (name: content), read-only at /app/CrushMFT27/split_prefs. A change rolls the pod.
config.logging.debug0The log level.
javaOptionsnoneJVM options instead of the image's (-XX:MaxRAMPercentage=50).
args-ad crushadminCrushMFT's arguments.
extraEnvnoneMore environment variables, e.g. CRUSHFTP_ADMIN_USERNAME.
persistence.*5Gi, ReadWriteOnceThe volume. enabled: false uses an emptyDir.
service.*ClusterIP: 8080, 9090, 443, 2222, 21The Service. FTP's passive ports are not exposed.
resources2GiThe job engine and its runners are JVMs of their own in the container: leave room above the heap.
terminationGracePeriodSeconds120A stop waits for active jobs.
probes/WebInterface/api/readyz, /WebInterface/api/healthzAnswered without a login or a session.
httpRoute.*offA Gateway API HTTPRoute.
fips.enabledfalseFIPS 140-3 mode (below). false: nothing of it is in the pod.
fips.preparetrueWith fips.enabled: the image prepares the volume (-FIPS_PREPARE) before a start it is not prepared for.
fips.secretKey.existingSecret, .existingSecretKeynone, secret.keyWith fips.enabled: the server's key for stored secrets from a Secret, read-only at /app/CrushMFT27/secret.key.

FIPS 140-3 mode

fips.enabled: true runs the -fips image of the same tag (27.0.0_257 becomes 27.0.0_257-fips, latest latest-fips): the same image plus the FIPS extras of the same CrushMFT build in /app (the module's jars in /app/plugins/lib/), started with -Dcrushmft.fips=true. The chart renders that java line itself (with javaOptions, or the image's heap), sets CRUSHFTP_FIPS_PREPARE from fips.prepare, and terminationMessagePolicy: FallbackToLogsOnError: when FIPS mode can not start (exit code 78: a jar of the module missing or changed) the pod never becomes ready, restarts with a growing wait, and kubectl describe pod shows Java's reason under Last State. Readiness and liveness are the same.

The image's start prepares the volume before a start it is not prepared for (a new volume, one the plain image ran on, a new version): -FIPS_PREPARE in a JVM without the launch parameter, after, on a new volume, a short first start in FIPS mode that makes the folder. It makes the server's own key for stored secrets (/app/CrushMFT27/secret.key) unless one is there, a certificate of the server's own where the settings say builtin (fips/builtin.bcfks), BCFKS copies of JKS and PKCS#12 key stores, and seals stored secrets still in DES again (the files as they were in fips/prepare-backup-<time>/). fips.prepare: false leaves that to you.

The key decides whether anything stored can be read again. Keep it apart from the volume, and give every replica of a cluster the same one: in a Secret (kubectl create secret generic crushmft27-secret-key --from-file=secret.key) named in fips.secretKey.existingSecret. A mounted key can not be changed from the admin pages; keep it mounted (the volume holds only an empty file at its place). The CrushMFT 27 wiki's page "FIPS Mode" has the rest.

Not in 0.1: more than one replica (a CrushMFT 27 cluster), a values schema.

Deploy crushmft27 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has crushmft27 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 chartcrushmft27 is pinned at v0.1.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