linkstack
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 pinsimage.digestto a specificlatestbuild so upgrades stay deliberate; bumpimage.digestyourself 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)
appVersionbumped from4.8.0to4.8.6, andimage.digestupdated 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/licenseannotation: 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 asapacheby default instead ofroot, so the init container needs an explicitrunAsUser: 0/runAsGroup: 0to retain permission tochownthe 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
| Name | Description | Value |
|---|---|---|
image.registry | The Docker registry to pull the image from | docker.io |
image.repository | The registry repository to pull the image from | linkstackorg/linkstack |
image.tag | The image tag to pull | latest |
image.digest | The image digest to pull | sha256:2920f70e15ae01a9d943cc90b96fc6198f6ac79260491deabf96103c42d49357 |
image.pullPolicy | The Kubernetes image pull policy | IfNotPresent |
image.pullSecrets | A list of secrets to use for pulling images from private registries | [] |
Name overrides
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override linkstack.fullname | "" |
fullnameOverride | String to fully override linkstack.fullname | "" |
Linkstack Configuration parameters
| Name | Description | Value |
|---|---|---|
linkstack.serverAdmin | The admin's email address | "" |
linkstack.serverName | The http (and HTTPS) server name for Apache2 | "" |
linkstack.logLevel | The log level for Apache2 | info |
linkstack.timeZone | A valid PHP timezone | UTC |
linkstack.phpMemoryLimit | The memory limit for PHP | 256M |
linkstack.uploadMaxFileSize | The upload-max-filesize for PHP | 8M |
linkstack.data.rootPath | The data folder is used for all files by default | /htdocs |
linkstack.data.pvc.size | The size given to PVCs created from the above data | 5Gi |
linkstack.data.pvc.storageClass | The storageClass given to PVCs created from the above data | standard |
linkstack.data.pvc.reclaimPolicy | The resourcePolicy given to PVCs created from the above data | Retain |
linkstack.data.pvc.existingClaim | Provide the name to an existing PVC | "" |
ConfigMap parameters
| Name | Description | Value |
|---|---|---|
configMap.annotations | Annotations for the ConfigMap resource | {} |
configMap.labels | Extra Labels for the ConfigMap resource | {} |
Ingress parameters
| Name | Description | Value |
|---|---|---|
ingress.enabled | Whether to enable Ingress | false |
ingress.className | The IngressClass to use for the pod's ingress | "" |
ingress.backendProtocol | Backend Service protocol to route to (http or https); HTTPS preserves the existing default | https |
ingress.whitelist | A comma-separated list of IP addresses to whitelist | "" |
ingress.annotations | Annotations for the Ingress resource | {} |
ingress.tls | A list of hostnames and secret names to use for TLS | [] |
ingress.extraHosts | A list of extra hosts for the Ingress resource (with linkstack.serverName) | [] |
Service parameters
| Name | Description | Value |
|---|---|---|
service.type | The type of service to create | ClusterIP |
service.ports.http | The http port to use on the service | 80 |
service.ports.https | The HTTPS port to use on the service | 443 |
service.nodePort | The Node port to use on the service | 30080 |
service.extraPorts | Extra ports to add to the service | [] |
service.annotations | Annotations for the service resource | {} |
service.labels | Labels for the service resource | {} |
service.externalTrafficPolicy | The external traffic policy for the service | Cluster |
service.internalTrafficPolicy | The internal traffic policy for the service | Cluster |
service.clusterIP | Define a static cluster IP for the service | "" |
service.loadBalancerIP | Set the Load Balancer IP | "" |
service.loadBalancerClass | Define Load Balancer class if service type is LoadBalancer (optional, cloud specific) | "" |
service.loadBalancerSourceRanges | Service Load Balancer source ranges | [] |
service.externalIPs | Service External IPs | [] |
service.sessionAffinity | Session 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlinkstack is pinned at v0.6.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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