linkstack

by Ad Noctem Collective

Helm chartv0.2.2App 4.8.0MIT

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

About this chart

FMJ Studios - 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 fmjstudios https://fmjstudios.github.io/helm
helm install linkstack fmjstudios/linkstack --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/fmjstudios/helm/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.

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:abd691b4293b020a317de8794737671e0315159efcb868e8a4124d6f0611f7ae
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.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 for Kubernetes service, can be "None" or "ClientIP"None
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
service.ipFamilyPolicyThe ipFamilyPolicy{}

RBAC parameters

NameDescriptionValue
rbac.createWhether to create RBAC resourcestrue
rbac.rulesExtra rules to add to the Role[]

Service Account parameters

NameDescriptionValue
serviceAccount.createWhether a service account should be createdtrue
serviceAccount.automountWhether to automount the service account tokenfalse
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameA custom name for the service account, otherwise linkstack.fullname is used""
serviceAccount.secretsA list of secrets mountable by this service account[]

Liveness Probe parameters

NameDescriptionValue
livenessProbe.enabledEnable or disable the use of liveness probesfalse
livenessProbe.initialDelaySecondsConfigure the initial delay seconds for the liveness probe5
livenessProbe.timeoutSecondsConfigure the initial delay seconds for the liveness probe1
livenessProbe.periodSecondsConfigure the seconds for each period of the liveness probe10
livenessProbe.successThresholdConfigure the success threshold for the liveness probe1
livenessProbe.failureThresholdConfigure the failure threshold for the liveness probe10

Readiness Probe parameters

NameDescriptionValue
readinessProbe.enabledEnable or disable the use of readiness probesfalse
readinessProbe.initialDelaySecondsConfigure the initial delay seconds for the readiness probe5
readinessProbe.timeoutSecondsConfigure the initial delay seconds for the readiness probe1
readinessProbe.periodSecondsConfigure the seconds for each period of the readiness probe10
readinessProbe.successThresholdConfigure the success threshold for the readiness probe1
readinessProbe.failureThresholdConfigure the failure threshold for the readiness probe3

Startup Probe parameters

NameDescriptionValue
startupProbe.enabledEnable or disable the use of readiness probesfalse
startupProbe.initialDelaySecondsConfigure the initial delay seconds for the startup probe5
startupProbe.timeoutSecondsConfigure the initial delay seconds for the startup probe1
startupProbe.periodSecondsConfigure the seconds for each period of the startup probe10
startupProbe.successThresholdConfigure the success threshold for the startup probe1
startupProbe.failureThresholdConfigure the failure threshold for the startup probe10

PodDisruptionBudget parameters

NameDescriptionValue
podDisruptionBudget.enabledEnable the pod disruption budget

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.2.2 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