koffan

by 0hlov3

Helm chartv0.1.8App v2.13.1

A Helm chart for Kubernetes Koffan

About this chart

koffan

Helm chart for Koffan.

Notes

  • SQLite does not support safe horizontal scaling. Keep replicaCount: 1 in production.
  • Default behavior: persistence.enabled: true and persistence.useEmptyDir: false, so a PVC is created.
  • For dev/testing without persistence, set persistence.enabled: false and persistence.useEmptyDir: false to run with the container filesystem.

Minimal values

auth:
  createSecret: false
  existingSecret:
    name: "koffan-secret"
    passwordKey: app-password

ingress:
  enabled: true
  className: "nginx-external"
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/tls-acme: "true"
  hosts:
    - host: shopping.example.io
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls:
    - secretName: tls-koffan-general
      hosts:
       - shopping.example.io

Parameters

Koffan Parameters

NameDescriptionValue
replicaCountNumber of replicas to deploy1
image.registryimage registryghcr.io
image.repositoryimage repositorypansalut/koffan
image.pullPolicyimage pull policyIfNotPresent
image.tagimage tag (immutable tags are recommended)""
app.envSet to development for non secure cookiesproduction
app.portService port used by the container80
app.dbPathDatabase file path/data/shopping.db
app.defaultLangDefault UI language (pl, en, de, es, fr, pt, uk, no, lt, el)en
app.loginMaxAttemptsMax login attempts before lockout5
app.loginWindowMinutesTime window for counting attempts15
app.loginLockoutMinutesLockout duration after exceeding limit30
auth.disableAuthSet to true to disable authentication (for reverse proxy setups)false
auth.passwordLogin password (ignored when auth.existingSecret.name is set)change-me
auth.apiToken.enabledEnable REST API using a tokenfalse
auth.apiToken.valueToken value (ignored when auth.existingSecret.name is set)""
auth.createSecretCreate a Secret for app credentialstrue
auth.existingSecret.nameUse an existing Secret name instead of creating one""
auth.existingSecret.passwordKeyKey name for the password in the Secret (also used for chart-created Secret keys)app-password
auth.existingSecret.apiTokenKeyKey name for the API token in the Secret (also used for chart-created Secret keys)api-token
persistence.enabledEnable persistent storage for the DBtrue
persistence.sizePersistent volume size1Gi
persistence.accessModesPersistent volume access modes["ReadWriteOnce"]
persistence.storageClassStorage class for the PVC (empty = default)""
persistence.annotationsPVC annotations{}
persistence.existingClaimUse an existing PVC instead of creating one""
persistence.mountPathMount path for the DB directory/data
persistence.useEmptyDirUse an emptyDir when persistence is disabledfalse
imagePullSecretsSecrets for pulling images from a private registry[]
nameOverrideOverride the chart name""
fullnameOverrideOverride the full chart name""
serviceAccount.createCreate a service accounttrue
serviceAccount.automountAutomount service account tokenfalse
serviceAccount.annotationsService account annotations{}
serviceAccount.nameService account name""
podAnnotationsPod annotations{}
podLabelsPod labels{}
podSecurityContext.fsGroupPod security context fsGroup1000
securityContext.capabilities.dropContainer security context capabilities drop list["ALL"]
securityContext.readOnlyRootFilesystemContainer security context read-only root filesystemtrue
securityContext.runAsNonRootContainer security context run as non-roottrue
securityContext.runAsUserContainer security context run as user1000
service.typeService typeClusterIP
service.portService port80
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.hosts[0].hostIngress hostchart-example.local
ingress.hosts[0].paths[0].pathIngress path/
ingress.hosts[0].paths[0].pathTypeIngress path typeImplementationSpecific
ingress.tlsIngress TLS configuration[]
httpRoute.enabledEnable HTTPRoutefalse
httpRoute.annotationsHTTPRoute annotations{}
httpRoute.parentRefs[0].nameHTTPRoute parent ref namegateway
httpRoute.parentRefs[0].sectionNameHTTPRoute parent ref section namehttp
httpRoute.hostnamesHTTPRoute hostnames["chart-example.local"]
httpRoute.rules[0].matches[0].path.typeHTTPRoute match path typePathPrefix
httpRoute.rules[0].matches[0].path.valueHTTPRoute match path value/headers
resourcesContainer resources{}
livenessProbe.httpGet.pathLiveness probe path/
livenessProbe.httpGet.portLiveness probe porthttp
readinessProbe.httpGet.pathReadiness probe path/
readinessProbe.httpGet.portReadiness probe porthttp
volumesAdditional volumes[]
volumeMountsAdditional volume mounts[]
nodeSelectorNode selector{}
tolerationsPod tolerations[]
affinityPod affinity{}

Deploy koffan with OpenTenant

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