moodle

by joaquinito2051

Helm chartv12.0.3App 3.11.5

Moodle(TM) LMS is an open source online Learning Management System widely used at universities, schools, and corporations. It is modular and highly adaptable to any type of online learning.

About this chart

Bitnami LMS powered by Moodle(TM) LMS

Moodle(TM) LMS is an open source online Learning Management System widely used at universities, schools, and corporations. It is modular and highly adaptable to any type of online learning.

Overview of Bitnami LMS powered by Moodle(™) LMS

Disclaimer: The respective trademarks mentioned in the offering are owned by the respective companies. We do not provide commercial license of any of these products. This listing has an open source license. Moodle(TM) LMS is run and maintained by Moodle HQ, that is a completely and separate project from Bitnami.

TL;DR

$ helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami
$ helm install my-release bitnami/moodle

Introduction

This chart bootstraps a Moodle™ 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 Moodle™ 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.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 bitnami/moodle

The command deploys Moodle™ 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 moodle.fullname template""
fullnameOverrideString to fully override moodle.fullname template""
commonAnnotationsCommon annotations to add to all Harbor resources (sub-charts are not considered). Evaluated as a template{}
commonLabelsCommon labels to add to all Harbor resources (sub-charts are not considered). Evaluated as a template{}
extraDeployArray with extra yaml to deploy with the chart. Evaluated as a template[]

Moodle™ parameters

NameDescriptionValue
image.registryMoodle image registrydocker.io
image.repositoryMoodle image repositorybitnami/moodle
image.tagMoodle image tag (immutable tags are recommended)3.11.5-debian-10-r0
image.pullPolicyMoodle image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
replicaCountNumber of Moodle replicas (requires ReadWriteMany PVC support)1
moodleSkipInstallSkip Moodle™ installation wizard. Useful for migrations and restoring from SQL dumpfalse
moodleSiteNameSite name""
moodleUsernameUser of the applicationuser
moodlePasswordApplication password""
moodleEmailAdmin email[email protected]
allowEmptyPasswordAllow DB blank passwordstrue
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
updateStrategy.typeUpdate strategy - only really applicable for deployments with RWO PVs attachedRollingUpdate
extraEnvVarsAn array to add extra env vars[]
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables (in case of sensitive data)""
extraVolumesArray of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts[]
extraVolumeMountsArray of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes.[]
initContainersExtra init containers to add to the deployment[]
sidecarsExtra sidecar containers to add to the deployment[]
hostAliasesMoodle™ pods host aliases[]
tolerationsTolerations for pod assignment[]
priorityClassNameMoodle™ pods' priorityClassName""
schedulerNameName of the k8s scheduler (other than default)""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
existingSecretName of a secret with the application password""
smtpHostSMTP host""
smtpPortSMTP port""
smtpUserSMTP user""
smtpPasswordSMTP password""
smtpProtocolSMTP Protocol (options: ssl,tls, nil)""
containerPortsContainer ports{}
sessionAffinityControl where client requests go, to the same pod or round-robinNone
persistence.enabledEnable persistence using PVCtrue
persistence.customStorageClassCreate a custom storage class{}
persistence.storageClassPVC Storage Class for Moodle""
persistence.accessModesPVC Access Mode for Moodle["ReadWriteOnce"]
persistence.sizePVC Storage Request for Moodle8Gi
persistence.existingClaimAn Existing PVC name""
persistence.hostPathHost mount path for Moodle""
persistence.annotationsPersistent Volume Claim annotations{}
podAffinityPresetPod affinity preset""
podAntiAffinityPresetPod anti-affinity presetsoft
nodeAffinityPreset.typeNode affinity type""
nodeAffinityPreset.keyNode label key to match""
nodeAffinityPreset.valuesNode label values to match[]
affinityMap of node/pod affinities{}
nodeSelectorNode labels for pod assignment{}
resources.requests

Deploy moodle with OpenTenant

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