moodle
Bitnami Helm chart for Moodle(TM) LMS
500K+
Moodle™ 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™ LMS is run and maintained by Moodle HQ, that is a completely and separate project from Bitnami.
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/moodle
Note: You need to substitute the placeholders
REGISTRY_NAMEandREPOSITORY_NAMEwith a reference to your Helm chart registry and repository.
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.
To install the chart with the release name my-release:
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/moodle
Note: You need to substitute the placeholders
REGISTRY_NAMEandREPOSITORY_NAMEwith a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.ioandREPOSITORY_NAME=bitnamicharts.
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
This section describes credentials, configuration, and other installation options.
Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the resources value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.
To make this process easier, the chart contains the resourcesPreset values, which automatically sets the resources section according to different presets. Check these presets in the bitnami/common chart. However, in production workloads using resourcesPreset is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the official Kubernetes documentation.
Bitnami charts configure credentials at first boot. Any further change in the secrets or credentials require manual intervention. Follow these instructions:
kubectl create secret generic SECRET_NAME --from-literal=moodle-password=PASSWORD --from-literal=smtp-password=SMTP_PASSWORD --dry-run -o yaml | kubectl apply -f -
This chart can be integrated with Prometheus by setting metrics.enabled to true. This will deploy a sidecar container with apache-exporter in all pods and a metrics service, which can be configured under the metrics.service section. This metrics service will have the necessary annotations to be automatically scraped by Prometheus.
It is necessary to have a working installation of Prometheus or Prometheus Operator for the integration to work. Install the Bitnami Prometheus helm chart or the Bitnami Kube Prometheus helm chart to easily have a working Prometheus in your cluster.
The chart can deploy ServiceMonitor objects for integration with Prometheus Operator installations. To do so, set the value metrics.serviceMonitor.enabled=true. Ensure that the Prometheus Operator CustomResourceDefinitions are installed in the cluster or it will fail with the following error:
no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
Install the Bitnami Kube Prometheus helm chart for having the necessary CRDs and the Prometheus Operator.
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
This chart provides support for exposing Moodle™ using the Gateway API and its HTTPRoute resource. If you have a Gateway controller installed on your cluster, such as APISIX, Contour, Envoy Gateway, NGINX Gateway Fabric or Kong Ingress Controller you can utilize the Gateway controller to serve your application. To enable Gateway API integration, set httpRoute.enabled to true.
The Gateway to be used can be customized by setting the httpRoute.parentRefs parameter. By default, it will reference a Gateway named gateway in the same namespace as the release.
You can specify the list of hostnames to be mapped to the deployment using the httpRoute.hostnames parameter. Additionally, you can customize the rules used to route the traffic to the service by modifying the httpRoute.matches and httpRoute.filters parameters or adding new rules using the httpRoute.extraRules parameter.
For using ingress (example without TLS):
ingress.enabled=True
ingress.hosts[0]=moodle.domain.com
serviceType=ClusterIP
moodleUsername=admin
moodlePassword=password
mariadb.mariadbRootPassword=secretpassword
These are the 3 mandatory parameters when Ingress is desired: ingress.enabled=True, ingress.hosts[0]=moodle.domain.com and serviceType=ClusterIP
If your cluster allows automatic creation/retrieval of TLS certificates, please refer to the documentation for that mechanism.
To manually configure TLS, first create/retrieve a key & certificate pair for the address(es) you wish to protect. Then create a TLS secret (named moodle-server-tls in this example) in the namespace. Include the secret's name, along with the desired hostnames, in the Ingress TLS section of your custom values.yaml file:
ingress:
## If true, Moodle(TM) server Ingress will be created
##
enabled: true
## Moodle(TM) server Ingress annotations
##
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: 'true'
## Moodle(TM) server Ingress hostnames
## Must be provided if Ingress is enabled
##
hosts:
- moodle.domain.com
## Moodle(TM) server Ingress TLS configuration
## Secrets must be manually created in the namespace
##
tls:
- secretName: moodle-server-tls
hosts:
- moodle.domain.com
To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using Velero, a Kubernetes backup/restore tool. Find the instructions for using Velero in this guide.
The FIPS parameters only have effect if you are using images from the Bitnami Secure Images catalog.
For more information on this new feature, please refer to the FIPS Compliance section.
The Bitnami Container Image for Moodle™ stores the Moodle™ data and configurations at the /bitnami/moodle and /bitnami/apache paths of the container.
Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, vSphere, and minikube. See the Parameters section to configure the PVC or to disable persistence. You may want to review the PV reclaim policy and update as required. By default, it's set to delete, and when Moodle™ is uninstalled, data is also removed.
The following subsections list global, common, and component-specific parameters.
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.defaultStorageClass | Global default StorageClass for Persistent Volume(s) | "" |
global.defaultFips | Default value for the FIPS configuration (allowed values: '', restricted, relaxed, disabled). Can be overridden by the 'fips' object | restricted |
global.security.allowInsecureImages | Allows skipping image verification | false |
global.compatibility.openshift.adaptSecurityContext | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | auto |
| 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 | [] |
usePasswordFiles | Mount credentials as files instead of using environment variables | true |
| Name | Description | Value |
|---|---|---|
image.registry | Moodle image registry | REGISTRY_NAME |
image.repository | Moodle image repository | REPOSITORY_NAME/moodle |
image.digest | Moodle image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
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 |
autoscaling.enabled | Enable Horizontal POD autoscaling for Moodle™ | false |
autoscaling.minReplicas | Minimum number of Moodle™ replicas | 1 |
autoscaling.maxReplicas | Maximum number of Moodle™ replicas | 10 |
autoscaling.targetCPU | Target CPU utilization percentage | 80 |
autoscaling.targetMemory | Target Memory utilization percentage | 80 |
moodleSkipInstall | Skip Moodle™ installation wizard. Useful for migrations and restoring from SQL dump | false |
moodleSiteName | Site name | "" |
moodleLang | Site language | "" |
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 | [] |
pdb.create | Enable/disable a Pod Disruption Budget creation | true |
pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled |
Note: the README for this chart is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at https://techdocs.broadcom.com/us/en/vmware-tanzu/bitnami-secure-images/bitnami-secure-images/services/bsi-app-doc/apps-charts-moodle-index.html
Content type
Image
Digest
sha256:d8ee32a11…
Size
7.8 kB
Last updated
11 months ago
docker pull bitnamicharts/moodle:sha256-a400bee75c17a475fe4dbb11f81377e7cd17ddb22ec10537a33633c1aa3233a5Pulls:
3,156
Last week