linkstack

by Ad Noctem Collective

Helm chartv0.6.1App 4.8.8AGPL-3.0Verified publisher

LinkStack is a highly customizable link sharing platform with an intuitive, easy to use user interface

About this chart

Ad Noctem Collective - Linkstack Helm Chart

LinkStack provides you with a configurable self-hosted site similar to Linktree. Many social media platforms only allow you to add one link, with this you can simply link to your LinkStack page and have all the links you want displayed on one site. You can share all your links to your social media platform or important links to easy accessible and hosted on your own web-server or web-hosting provider. On this site, other users can register and create their own links, you can access other user via the Admin Panel. It delivers all of these features within a single Docker image available on Docker Hub.

Head to the Linkstack GitHub Repository for in-depth view at the implementation or to the documentation for guides and examples.

✨ TL;DR

Helm Repository Installation

helm repo add adnoctem https://adnoctem.github.io/charts
helm install linkstack adnoctem/linkstack --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/adnoctem/charts/linkstack:X.Y.Z

Introduction

This chart bootstraps a Linkstack StatefulSet on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget if enabled. RBAC manifests are enabled by default.

The chart supports the configuration of all Linkstack environment variables via the linkstack key in Helm's values and makes use of the official Docker Hub container image, although this is configurable via the Image Parameters.

[!NOTE] LinkStack does not publish semver-tagged images on Docker Hub, only latest - the chart pins image.digest to a specific latest build so upgrades stay deliberate; bump image.digest yourself to move to a newer build.

Upgrading

To 0.6.0

ingress.backendProtocol selects the backend Service port: https (the unchanged default) uses service.ports.https, while http uses service.ports.http. Configure the ingress controller to use the matching backend protocol. Frontend TLS remains controlled by ingress.tls and the controller's certificate configuration. For TLS termination at the ingress controller with an HTTP backend, set ingress.backendProtocol: http and configure the application to recognize its external HTTPS URL. The bundled application configuration generates HTTP asset URLs over an HTTP backend despite forwarded HTTPS headers; retain the HTTPS backend to avoid mixed content in that case. Existing HTTPS-backend installations do not need a values change.

To 0.5.0 (LinkStack 4.8.6 -> 4.8.8 for new installations)

The pinned image contains LinkStack 4.8.8. Releases 4.8.7 and 4.8.8 include security and compatibility fixes: link ownership checks, profile HTML filtering and Apache restrictions on direct PHP and sensitive-file access. The container's environment variables, ports and storage path are unchanged; no new application migration files were added between these releases.

Existing volumes are now preserved instead of overwritten. Earlier chart versions copied the bundled application, including .env and database/database.sqlite, into the PVC every time the pod was recreated. The init container now seeds only an empty volume. This protects existing configuration, database contents, uploads and customizations. Back up the entire PVC before upgrading, including .env, database files, themes and uploaded assets; also back up an external database if configured.

An image or Helm upgrade updates the container runtime but does not replace the application already stored on the PVC. After upgrading this chart, use the upstream Admin Panel updater to update an existing installation to 4.8.8 and verify its reported application version. appVersion describes the version bundled for new installations, not necessarily the version running from an existing PVC. Do not delete the PVC to force an upgrade. A nonempty volume must contain a complete installation writable by the configured container user; partially populated volumes are left untouched and need manual recovery from a known-good backup.

Avoid rolling back to chart 0.4.0 or earlier: those init containers can overwrite your restored data on pod recreation. For recovery, retain this chart's guarded seeding behavior and restore matching application files, configuration and database backups. A container digest rollback alone does not roll back the application on the PVC.

To 0.4.0 (LinkStack 4.8.0 -> 4.8.6)

  • appVersion bumped from 4.8.0 to 4.8.6, and image.digest updated to match. All intermediate releases were security/dependency patches and UI additions (new social buttons, a modular blocks system) - no environment variables or container behavior relevant to this chart changed.
  • Corrected the artifacthub.io/license annotation: LinkStack is licensed AGPL-3.0, not MIT as previously listed.
  • Fixed the data-seeding init container, which crashed (chown: /data: Operation not permitted) against the new image build - the image now runs as apache by default instead of root, so the init container needs an explicit runAsUser: 0/runAsGroup: 0 to retain permission to chown the PVC on first install.
  • If your LinkStack instance was ever upgraded via its own in-app updater while running 4.8.0-4.8.3, be aware that a since-fixed bug in that updater could corrupt or delete the contents of the themes directory - see the 4.8.4 release notes if that applies to your deployment. The volume-overwrite issue in this chart's old image upgrade path is addressed in 0.5.0 above.

Parameters

Image parameters

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image fromlinkstackorg/linkstack
image.tagThe image tag to pulllatest
image.digestThe image digest to pullsha256:2920f70e15ae01a9d943cc90b96fc6198f6ac79260491deabf96103c42d49357
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override linkstack.fullname""
fullnameOverrideString to fully override linkstack.fullname""

Linkstack Configuration parameters

NameDescriptionValue
linkstack.serverAdminThe admin's email address""
linkstack.serverNameThe http (and HTTPS) server name for Apache2""
linkstack.logLevelThe log level for Apache2info
linkstack.timeZoneA valid PHP timezoneUTC
linkstack.phpMemoryLimitThe memory limit for PHP256M
linkstack.uploadMaxFileSizeThe upload-max-filesize for PHP8M
linkstack.data.rootPathThe data folder is used for all files by default/htdocs
linkstack.data.pvc.sizeThe size given to PVCs created from the above data5Gi
linkstack.data.pvc.storageClassThe storageClass given to PVCs created from the above datastandard
linkstack.data.pvc.reclaimPolicyThe resourcePolicy given to PVCs created from the above dataRetain
linkstack.data.pvc.existingClaimProvide the name to an existing PVC""

ConfigMap parameters

NameDescriptionValue
configMap.annotationsAnnotations for the ConfigMap resource{}
configMap.labelsExtra Labels for the ConfigMap resource{}

Ingress parameters

NameDescriptionValue
ingress.enabledWhether to enable Ingressfalse
ingress.classNameThe IngressClass to use for the pod's ingress""
ingress.backendProtocolBackend Service protocol to route to (http or https); HTTPS preserves the existing defaulthttps
ingress.whitelistA comma-separated list of IP addresses to whitelist""
ingress.annotationsAnnotations for the Ingress resource{}
ingress.tlsA list of hostnames and secret names to use for TLS[]
ingress.extraHostsA list of extra hosts for the Ingress resource (with linkstack.serverName)[]

Service parameters

NameDescriptionValue
service.typeThe type of service to createClusterIP
service.ports.httpThe http port to use on the service80
service.ports.httpsThe HTTPS port to use on the service443
service.nodePortThe Node port to use on the service30080
service.extraPortsExtra ports to add to the service[]
service.annotationsAnnotations for the service resource{}
service.labelsLabels for the service resource{}
service.externalTrafficPolicyThe external traffic policy for the serviceCluster
service.internalTrafficPolicyThe internal traffic policy for the serviceCluster
service.clusterIPDefine a static cluster IP for the service""
service.loadBalancerIPSet the Load Balancer IP""
service.loadBalancerClassDefine Load Balancer class if service type is LoadBalancer (optional, cloud specific)""
service.loadBalancerSourceRangesService Load Balancer source ranges[]
service.externalIPsService External IPs[]
service.sessionAffinitySession Affinity

Deploy linkstack with OpenTenant

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