mediawiki

by [riftbit]

Helm chartv12.3.11App 1.36.1Verified publisher

Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database.

About this chart

MediaWiki

MediaWiki is an extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database, such as MySQL.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/mediawiki

Introduction

This chart bootstraps a MediaWiki deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the MediaWiki application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

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

$ helm install my-release bitnami/mediawiki

The command deploys MediaWiki on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainDefault Kubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release[]

Mediawiki parameters

NameDescriptionValue
image.registryMediaWiki image registrydocker.io
image.repositoryMediaWiki image repositorybitnami/mediawiki
image.tagMediaWiki image tag (immutable tags are recommended)1.36.1-debian-10-r82
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
hostAliasesDeployment pod host aliases[]
mediawikiUserUser of the applicationuser
mediawikiPasswordApplication password""
mediawikiEmailAdmin email[email protected]
mediawikiNameName for the wikiMy Wiki
mediawikiHostMediawiki host to create application URLs""
allowEmptyPasswordAllow DB blank passwordsyes
smtpHostSMTP host""
smtpPortSMTP port""
smtpHostIDSMTP host ID""
smtpUserSMTP user""
smtpPasswordSMTP password""
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsExtra environment variables to be set on Mediawki container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

Mediawiki deployment parameters

NameDescriptionValue
updateStrategy.typeStrategyType can be set to RollingUpdate or OnDeleteRollingUpdate
podSecurityContext.enabledEnable Mediawiki pods' Security Contexttrue
podSecurityContext.fsGroupGroup ID for the volumes of the pod1001
containerSecurityContext.enabledEnable Mediawiki containers' SecurityContexttrue
containerSecurityContext.runAsUserUser ID to run Mediawiki containers1001
resources.limitsThe resources limits for the Mediawki container{}
resources.requestsThe requested resources for the Mediawki container{}
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.httpGet.pathRequest path for livenessProbe/api.php?action=query&meta=siteinfo&format=none
livenessProbe.httpGet.portPort for livenessProbehttp
livenessProbe.httpGet.httpHeadersHeaders for livenessProbe[]
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.httpGet.pathRequest path for readinessProbe/api.php?action=query&meta=siteinfo&format=none
readinessProbe.httpGet.portPort for readinessProbehttp
readinessProbe.httpGet.httpHeadersHeaders for livenessProbe[]
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
podLabelsExtra labels for Mediawki pods{}
podAnnotationsAnnotations for Mediawki pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment. Evaluated as a template.{}
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
tolerationsTolerations for pod assignment. Evaluated as a template.[]
extraVolumesOptionally specify extra list of additional volumes for Mediawki pods[]
extraVolumeMountsOptionally specify extra list of additional

Deploy mediawiki with OpenTenant

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