platform-extensions

by synkube

Helm chartv1.5.0App 1.0.0Apache-2.0Verified publisher

Cluster-scoped Kubernetes resources for platform teams (requires cluster-admin)

About this chart

platform-extensions

Cluster-scoped Kubernetes resources for platform teams.

What It Does

Manage cluster-wide infrastructure without writing YAML:

  • ClusterSecretStores - Cluster-wide secret providers
  • ClusterRoles & ClusterRoleBindings - Cluster RBAC
  • ValidatingWebhookConfigurations - Admission validation
  • MutatingWebhookConfigurations - Admission mutation
  • Leases - Leader election for controllers
  • StorageClasses - Storage provisioner configs
  • VolumeSnapshotClasses - Backup configurations
  • VolumeSnapshots - One-off point-in-time backups
  • ScheduledVolumeSnapshots - Automated backup schedules
  • PriorityClasses - Workload scheduling priorities
  • ResourceQuotas - Namespace resource limits
  • LimitRanges - Default resource constraints
  • NetworkPolicies - Platform-wide network rules
  • IngressClasses - Ingress controller definitions
  • GatewayClasses & Gateways - Gateway API resources
  • ClusterIssuers - cert-manager CAs
  • Certificates - TLS certificates

Install

helm repo add synkube https://synkube.github.io/charts
helm install platform synkube/platform-extensions -f values.yaml

Quick Example

clusterSecretStores:
  infisical:
    provider:
      infisical:
        auth:
          universalAuthCredentials:
            clientId:
              secretRef:
                name: infisical-auth
                key: clientId
            clientSecret:
              secretRef:
                name: infisical-auth
                key: clientSecret
        hostAPI: "https://app.infisical.com/api"

storageClasses:
  fast-ssd:
    provisioner: pd.csi.storage.gke.io
    parameters:
      type: pd-ssd
    allowVolumeExpansion: true

priorityClasses:
  critical:
    value: 1000000
    description: "Critical workloads"

clusterIssuers:
  letsencrypt-prod:
    acme:
      server: https://acme-v02.api.letsencrypt.org/directory
      email: [email protected]
      privateKeySecretRef:
        name: letsencrypt-prod-key
      solvers:
        - http01:
            ingress:
              class: nginx

Volume Snapshots

One-off Snapshots

Create manual point-in-time backups:

volumeSnapshots:
  my-db-backup-jan-2025:
    namespace: data
    pvcName: postgres-data
    volumeSnapshotClassName: standard
    labels:
      backup-type: manual

Scheduled Snapshots

Automated backup schedules (requires scheduled-volume-snapshotter operator):

# Install the operator first
helm repo add scheduled-volume-snapshotter https://ryaneorth.github.io/k8s-scheduled-volume-snapshotter
helm install scheduled-volume-snapshotter scheduled-volume-snapshotter/scheduled-volume-snapshotter -n platform
scheduledVolumeSnapshots:
  postgres-daily:
    namespace: data
    pvcName: postgres-data
    snapshotClassName: standard
    snapshotFrequency: 24h   # 30m, 5h, 4d, 1w
    snapshotRetention: 7d    # how long to keep
    snapshotLabels:
      database: postgres

Requirements

DependencyRequired For
external-secrets-operatorClusterSecretStores
cert-managerClusterIssuers, Certificates
Gateway API CRDsGatewayClasses, Gateways
snapshot-controllerVolumeSnapshotClasses, VolumeSnapshots
scheduled-volume-snapshotterScheduledVolumeSnapshots

Deploy platform-extensions with OpenTenant

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