moodle
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override moodle.fullname template | "" |
fullnameOverride | String to fully override moodle.fullname template | "" |
commonAnnotations | Common annotations to add to all Harbor resources (sub-charts are not considered). Evaluated as a template | {} |
commonLabels | Common labels to add to all Harbor resources (sub-charts are not considered). Evaluated as a template | {} |
extraDeploy | Array with extra yaml to deploy with the chart. Evaluated as a template | [] |
Moodle™ parameters
| Name | Description | Value |
|---|---|---|
image.registry | Moodle image registry | docker.io |
image.repository | Moodle image repository | bitnami/moodle |
image.tag | Moodle image tag (immutable tags are recommended) | 3.11.5-debian-10-r0 |
image.pullPolicy | Moodle image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
replicaCount | Number of Moodle replicas (requires ReadWriteMany PVC support) | 1 |
moodleSkipInstall | Skip Moodle™ installation wizard. Useful for migrations and restoring from SQL dump | false |
moodleSiteName | Site name | "" |
moodleUsername | User of the application | user |
moodlePassword | Application password | "" |
moodleEmail | Admin email | [email protected] |
allowEmptyPassword | Allow DB blank passwords | true |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
extraEnvVars | An array to add extra env vars | [] |
extraEnvVarsCM | ConfigMap with extra environment variables | "" |
extraEnvVarsSecret | Secret with extra environment variables (in case of sensitive data) | "" |
extraVolumes | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts | [] |
extraVolumeMounts | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes. | [] |
initContainers | Extra init containers to add to the deployment | [] |
sidecars | Extra sidecar containers to add to the deployment | [] |
hostAliases | Moodle™ pods host aliases | [] |
tolerations | Tolerations for pod assignment | [] |
priorityClassName | Moodle™ pods' priorityClassName | "" |
schedulerName | Name of the k8s scheduler (other than default) | "" |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
existingSecret | Name of a secret with the application password | "" |
smtpHost | SMTP host | "" |
smtpPort | SMTP port | "" |
smtpUser | SMTP user | "" |
smtpPassword | SMTP password | "" |
smtpProtocol | SMTP Protocol (options: ssl,tls, nil) | "" |
containerPorts | Container ports | {} |
sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
persistence.enabled | Enable persistence using PVC | true |
persistence.customStorageClass | Create a custom storage class | {} |
persistence.storageClass | PVC Storage Class for Moodle | "" |
persistence.accessModes | PVC Access Mode for Moodle | ["ReadWriteOnce"] |
persistence.size | PVC Storage Request for Moodle | 8Gi |
persistence.existingClaim | An Existing PVC name | "" |
persistence.hostPath | Host mount path for Moodle | "" |
persistence.annotations | Persistent Volume Claim annotations | {} |
podAffinityPreset | Pod affinity preset | "" |
podAntiAffinityPreset | Pod anti-affinity preset | soft |
nodeAffinityPreset.type | Node affinity type | "" |
nodeAffinityPreset.key | Node label key to match | "" |
nodeAffinityPreset.values | Node label values to match | [] |
affinity | Map of node/pod affinities | {} |
nodeSelector | Node 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmoodle is pinned at v12.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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