piwigo

by Helm

Helm chartv0.0.6App 12.2.0

Piwigo is open source photo gallery software for the web.

About this chart

Piwigo

This is a helm chart for Piwigo

TL;DR;

helm install --set server_name=matrix.example.org incubator/piwigo

Installing the Chart

To install the chart with the release name my-release:

helm install --name my-release incubator/piwigo

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the Piwigo chart and their default values.

Note that the database user and password options only apply directly to the user that MariaDB creates automatically. Piwigo has an install procedure it goes through the first time it's visited in a web browser.

ParameterDescriptionDefault
image.repositoryImage repositorymathieuruellan/piwigo
image.tagImage tag. Possible values listed here.release-2.9.4
image.pullPolicyImage pull policyIfNotPresent
replicaCountNumber of replicas to deploy1
extraLabelsAdditional labels to apply to all created resources{}
mariadb.deployWhether or not to deploy stable/mariadb as a subchartfalse
mariadb.nameOverrideOverride for MariaDB subchart artifacts' namesdb
mariadb.existingSecretName of secret to pass to MariaDB for user creation; this is deployed as part of this chartpiwigo-db
mariadb.replication.enabledWhether or not to deploy a MariaDB clusterfalse
mariadb.db.userName of user to automatically create in MariaDBpiwigo
mariadb.db.passwordPassword for automatically-created user in MariaDB16 random alphanumeric characters
mariadbThere are many other options for the Mariadb subchart
database.storage_engineWhich storage engine to use for creating the database tables. Only applies during the installation procedure.MyISAM
service.annotationsAnnotations for Service resource{}
service.typeType of service to deployClusterIP
service.clusterIPClusterIP of service; if blank, it will be selected at random from the cluster CIDR range""
service.portPort to expose service80
service.externalIPsExternal IPs for service[]
service.loadBalancerIPLoad balancer IP""
service.loadBalancerSourceRangesList of IP CIDRs allowed to access the load balancer (if supported)[]
ingress.enabledWhether or not to deploy the Ingress resourcefalse
ingress.classIngress class (included in annotations)``
ingress.annotationsIngress annotations{}
ingress.pathIngress path/
ingress.hostsIngress accepted hostnames[piwigo]
ingress.tlsIngress TLS configuration[]
persistence.galleriesOptional VolumeSpec to inject; if not specified, will simply be deployed as a subdirectory in persistence.data{}
persistence.data.enabledUse persistent volume to store datatrue
persistence.data.sizeSize of persistent volume claim256Gi
persistence.data.existingClaimUse an existing PVC to persist data``
persistence.data.storageClassType of persistent volume claim``
persistence.data.accessModePVC access modeReadWriteMany
persistence.config.enabledUse persistent volume to store configtrue
persistence.config.sizeSize of persistent volume claim4Gi
persistence.config.existingClaimUse an existing PVC to persist config``
persistence.config.storageClassType of persistent volume claim``
persistence.config.accessModePVC access modeReadWriteMany
resourcesCPU/Memory resource requests/limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityAffinity settings for pod assignment{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install --name my-release \
	--set server_name="matrix.example.com" \
	--set ingress.enabled=true \
	incubator/piwigo

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install --name my-release -f values.yaml incubator/piwigo

Read through the values.yaml file.

Deploy piwigo with OpenTenant

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