futtertrog

by robjuz

Helm chartv1.7.0App 21.10.1

A Helm chart for Kubernetes

About this chart

Futtertrog

Futtertrog Is an easy system to organize yours and your coworkers lunch orders.

TL;DR

helm repo add robjuz https://robjuz.github.io/helm-charts/
helm install futtertrog robjuz/futtertrog

Introduction

This chart bootstraps a futtertrog deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the Futtertrog application.

This chart has been tested to work with NGINX Ingress and cert-manager on top of the MicroK8s.

Prerequisites

  • Kubernetes 1.18+
  • Helm 3.1.0

Installing the Chart

To install the chart with the release name futtertrog:

helm install futtertrog robjuz/futtertrog

The command deploys Futtertrog on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the futtertrog deployment:

helm delete futtertrog

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil

Futtertrog image parameters

NameDescriptionValue
image.repositoryFuttertrog image repositoryrobjuz/futtertrog
image.tagFuttertrog image tag (immutable tags are recommended)latest
image.pullPolicyFuttertrog image pull policyIfNotPresent
imagePullSecretsFuttertrog image pull secrets[]

Futtertrog configuration parameters

NameDescriptionValue
appKeyApplication key``
adminNamelName of the admin[email protected]
adminEmailEmail for the admin account[email protected]
adminPasswordPassword for the admin accountchangemeplease

Futtertrog services configuration parameters

NameDescriptionValue
gitlab.enabledEnable login with Gitlabfalse
gitlab.urlGitlab url``
gitlab.clientIdGitlab application clientId``
gitlab.clientSecretGitlab application clientSecret``
nexmo.keyNexmo key``
nexmo.secretNexmo secret``

Futtertrog meal providers configuration parameters

NameDescriptionValue
holzke.enabledEnable Holzke providerfalse
holzke.loginHolzke login``
holzke.passwordHolzke password``
holzke.cronjobEnable Holzke automatic meal importfalse
holzke.orderInfoAdditional information when placing order``
call_a_pizza.enabledEnable Call A Pizza providerdresden_loebtau_sued
call_a_pizza.locationCall A Pizza location``

Futtertrog deployment parameters

NameDescriptionValue
replicaCountNumber of Futtertrog replicas to deploy1
updateStrategy.typeFuttertrog deployment strategy typeRollingUpdate
updateStrategy.rollingUpdateFuttertrog deployment rolling update configuration parameters{}
podAnnotationsAnnotations for Futtertrog pods{}

Traffic exposure parameters

NameDescriptionValue
service.typeFuttertrog service typeClusterIP
service.portFuttertrog service HTTP port80
ingress.enabledEnable ingress record generation for Futtertrogfalse
ingress.certManagerAdd the corresponding annotations for cert-manager integrationfalse
ingress.hostnameDefault host for the ingress recordkimai.local
ingress.annotationsAdditional custom annotations for the ingress record{}
ingress.tlsEnable TLS configuration for the host defined at ingress.hostname parameterfalse
ingress.secretsCustom TLS certificates as secrets[]

Database parameters

NameDescriptionValue
mariadb.enabledDeploy a MariaDB server to satisfy the applications database requirementstrue
mariadb.architectureMariaDB architecture. Allowed values: standalone or replicationstandalone
mariadb.auth.rootPasswordMariaDB root passwordchangeme
mariadb.auth.databaseMariaDB custom databasekimai
mariadb.auth.usernameMariaDB custom user namekimai
mariadb.auth.passwordMariaDB custom user passwordkimai
mariadb.primary.persistence.enabledEnable persistence on MariaDB using PVC(s)true
mariadb.primary.persistence.storageClassPersistent Volume storage classnil
mariadb.primary.persistence.accessModesPersistent Volume access modes[ReadWriteOnce]
mariadb.primary.persistence.sizePersistent Volume size4Gi

The above parameters map to the env variables defined in robjuz/futtertrog. For more information please refer to the robjuz/futtertrog image documentation.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install my-release \
  --set [email protected] \
  --set adminPassword=password \
  --set mariadb.auth.rootPassword=secretpassword \
    robjuz/futtertrog

The above command sets the Futtertrog administrator account username and password to [email protected] and password respectively. Additionally, it sets the MariaDB root user password to secretpassword.

NOTE: Once this chart is deployed, it is not possible to change the application's access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application's built-in administrative tools if available.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install futtertrog -f values.yaml robjuz/futtertrog

Configuration and installation details

External database support

You may want to have Futtertrog connect to an external database rather than installing one inside your cluster. Typical reasons for this are to use a managed database service, or to share a common database server for all your applications. To achieve this, the chart allows you to specify credentials for an external database with the externalDatabase parameter. You should also disable the MariaDB installation with the mariadb.enabled option. Here is an example:

mariadb.enabled=false
externalDatabase.host=myexternalhost
externalDatabase.user=myuser
externalDatabase.password=mypassword
externalDatabase.database=mydatabase
externalDatabase.port=3306

Ingress

This chart provides support for Ingress resources. If an Ingress controller, such as nginx-ingress or traefik, that Ingress controller can be used to serve Futtertrog.

To enable Ingress integration, set ingress.enabled to true. The ingress.hostname property can be used to set the host name. The ingress.tls parameter can be used to add the TLS configuration for this host.

TLS secrets

The chart also facilitates the creation of TLS secrets for use with the Ingress controller, with different options for certificate management.

Deploy futtertrog with OpenTenant

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