mediawiki

by joaquinito2051

Helm chartv14.3.7App 1.38.4

MediaWiki is the free and open source wiki software that powers Wikipedia. Used by thousands of organizations, it is extremely powerful, scalable software and a feature-rich wiki implementation.

About this chart

MediaWiki packaged by Bitnami

MediaWiki is the free and open source wiki software that powers Wikipedia. Used by thousands of organizations, it is extremely powerful, scalable software and a feature-rich wiki implementation.

Overview of MediaWiki

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.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 my-repo/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.38.4-debian-11-r6
image.digestMediaWiki image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugEnable MediaWiki image debug modefalse
hostAliasesDeployment pod host aliases[]
mediawikiUserUser of the applicationuser
mediawikiPasswordApplication password""
mediawikiSecretExisting Secret containing the password for the mediawikiUser user; must contain the key mediawiki-password and optional key smtp-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)[]
lifecycleHooksfor the Mediawiki container(s) to automate configuration before or after startup{}
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
containerSecurityContext.runAsNonRootSet Mediawiki container's Security Context runAsNonRoottrue
resources.limitsThe resources limits for the Mediawki container{}
resources.requestsThe requested resources for the Mediawki container{}
startupProbe.enabledEnable startupProbefalse
startupProbe.httpGet.pathRequest path for startupProbe/api.php?action=query&meta=siteinfo&format=none
startupProbe.httpGet.portPort for startupProbehttp
startupProbe.httpGet.httpHeadersHeaders for startupProbe[]
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe120
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe5
startupProbe.failureThresholdFailure threshold for startupProbe6
startupProbe.successThresholdSuccess threshold for startupProbe1
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

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 v14.3.7 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