taiga

by rodolfojcj

Helm chartv0.1.0App 6

Chart for Taiga, your opensource agile project management software

About this chart

Taiga Helm Chart

This directory contains a Helm chart to deploy Taiga (version 6) on a Kubernetes cluster.

To create this chart, the Taiga Dockerhttps://github.com/kaleidos-ventures/taiga-docker repository has been used as a guideline, mainly its docker-compose.yml file.

Requirements

  • A working Kubernetes cluster, to which you have access to install this chart.
  • A working Helm instance to install this chart.
  • To persist the PostgreSQL data, a persistent volume. Possible exceptions to this would be either a configured external database or a testing environment where you only want to explore how things work, in which case the database data is considered ephemeral.
  • To persist the RabbitMQ data for the Taiga Events service, a persistent volume. This is optional and not used by default.
  • To persist the RabbitMQ data for the Taiga Async service, a persistent volume. This is optional and not used by default.
  • To persist the Taiga media data, like attached images or other files, a persistent volume. A possible exception to this would be a testing environment to explore how things work, in which case the media data is considered ephemeral.
  • To persist the Taiga static data, a persistent volume. A possible exception to this would be a testing environment to explore how things work, or if you prefer to regenerate it using Django commands, in which case the static data is considered ephemeral.

Components

  • Reused via existing Helm charts that provide the needed Docker compatible images:
    • Optionally, a PostgreSQL database instance. Alternatively, an external database can be configured.
    • A standalone RabbitMQ instance to handle events for the Async service.
    • A standalone RabbitMQ instance to handle events for the Events service.
    • An Nginx instance as the gateway for the web accessible Taiga components.
  • Taiga main components, which by default will be based on the official Docker images publicly available on Docker Hub (this could be changed if needed):

There is a Taiga blog post comment that also mentions those Taiga components.

Configuration

The available settings are specified in the values file of this chart.

To override them, follow the Helm values documentation. As an example of this, let's consider the following contents that can be passed to the helm binary:

async-rabbitmq:
  persistence:
    enabled: false


events-rabbitmq:
  persistence:
    enabled: false


eventsWebSocketsScheme: wss


independentIngress:
  enabled: true
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 128m
    cert-manager.io/issuer: letsencrypt-production-issuer
  tls:
    - hosts:
        - '{{ .Values.sitesDomain }}'
      secretName: mytaiga-tls-cert-and-key


nginx-gateway:
  affinity:
    podAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
              - key: attached-to-static-data-volume
                operator: In
                values:
                  - "true"
              - key: attached-to-media-data-volume
                operator: In
                values:
                  - "true"
          topologyKey: "kubernetes.io/hostname"
  extraVolumes:
    - name: taiga-media-data
      persistentVolumeClaim:
        claimName: mytaiga-media-pvc
  extraVolumeMounts:
    - name: taiga-media-data
      mountPath: '{{ include "taiga.nginx-gateway.mediaDir.fullpath" . }}'
      subPath: ''


persistence:
  staticData:
    enabled: false
#   existingClaim: mytaiga-static-pvc
  mediaData:
    enabled: true
    existingClaim: mytaiga-media-pvc


podAffinities:
  taigaAsync:
    podAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
              - key: attached-to-static-data-volume
                operator: In
                values:
                  - "true"
              - key: attached-to-media-data-volume
                operator: In
                values:
                  - "true"
          topologyKey: "kubernetes.io/hostname"
  taigaCollectStaticFiles:
    podAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
              - key: attached-to-static-data-volume
                operator: In
                values:
                  - "true"
          topologyKey: "kubernetes.io/hostname"


postgresql:
  postgresqlPassword: ThePgPassword
  persistence:
    # enabled: false
    enabled: true
    existingClaim: mytaiga-database-pvc


sitesDomain: mytaiga.example.com


sitesScheme: https


superuser:
  create: true

Installation

Using the helm binary, any of these commands may be executed to install this taiga chart in your cluster:

helm install my-taiga-helm-release taiga
helm install my-taiga-helm-release taiga --values ./my-taiga-chart-values.yaml
helm install my-taiga-helm-release taiga --namespace my-namespace --values ./my-taiga-chart-values.yaml

Deploy taiga with OpenTenant

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