Files
herolib/lib/installers/k8s/cryptpad
Mahmoud-Emad adb012e9cf refactor: Simplify default server retrieval
- Remove unused logic for default server lookup
- Consolidate server retrieval for Cryptpad and ElementChat
- Update default server assignment logic
2025-11-18 12:37:26 +02:00
..
2025-10-30 11:46:15 +00:00

CryptPad Kubernetes Installer

A Kubernetes installer for CryptPad with TFGrid Gateway integration.

Quick Start

import incubaid.herolib.installers.k8s.cryptpad

// Create and install CryptPad
mut installer := cryptpad.get(
    name:   'mycryptpad'
    create: true
)!

installer.install()!

to change the hostname and the namespace, you can override the default values:

mut installer := cryptpad.get(
    name:   'mycryptpad'
    create: true
)!

installer.hostname = 'customhostname'
installer.namespace = 'customnamespace'
installer.install()!

Usage

Create an Instance

mut installer := cryptpad.get(
    name:   'mycryptpad'  // Unique name for this instance
    create: true          // Create if doesn't exist
)!

The instance name will be used as:

  • Kubernetes namespace name
  • Hostname prefix (e.g., mycryptpad.gent01.grid.tf)

Install

installer.install()!

This will:

  1. Generate Kubernetes YAML files for CryptPad and TFGrid Gateway
  2. Apply them to your k3s cluster
  3. Wait for deployment to be ready

Destroy

installer.destroy()!

Removes all CryptPad resources from the cluster.

Requirements

  • kubectl installed and configured
  • k3s cluster running
  • Redis server running (for configuration storage)