Files
charts/drupal

Drupal

Drupal is one of the most versatile open source content management systems on the market.

Based on the Bitnami Drupal image for docker, this Chart bootstraps a Drupal deployment on a Kubernetes cluster using Helm.

Dependencies

The Drupal Chart requires the Bitnami MariaDB Chart for setting up a database backend.

Please refer to the README of the Bitnami MariaDB Chart for deployment instructions.

Persistence

You may skip this section if your only interested in testing the Drupal Chart and have not yet made the decision to use it for your production workloads.

For persistence of the Drupal configuration and user file uploads, mount a storage volume at the /bitnami/drupal path of the Drupal pod.

By default the Drupal Chart mounts an emptyDir volume.

Configuration

To edit the default Drupal configuration, run

$ helmc edit drupal

Here you can update the MariaDB root password, Drupal admin username, password and email address in tpl/values.toml. When not specified, the default values are used.

Refer to the Environment variables section of the Bitnami Drupal image for the default values.

The values of drupalUser and drupalPassword are the login credentials when you access the Drupal instance.

Note:

If you had updated the MariaDB root password for the MariaDB deployment, then ensure you set the same password for the mariadbRootPassword field in the Drupal Chart.

Finally, generate the chart to apply your changes to the configuration.

$ helmc generate --force drupal

Access your Drupal application

You should now be able to access the application using the external IP configured for the Drupal service.

Note:

On GKE, the service will automatically configure a firewall rule so that the Drupal instance is accessible from the internet, for which you will be charged additionally.

On other cloud platforms you may have to setup a firewall rule manually. Please refer your cloud providers documentation.

Get the external IP address of your Drupal instance using:

$ kubectl get services drupal
NAME      CLUSTER_IP      EXTERNAL_IP       PORT(S)         SELECTOR      AGE
drupal    10.63.246.116   146.148.20.117    80/TCP,443/TCP  app=drupal    15m

Access your Drupal deployment using the IP address listed under the EXTERNAL_IP column.

The default credentials are:

  • Username: user
  • Password: bitnami

Cleanup

To delete the Drupal deployment completely:

$ helmc uninstall -n default drupal

Additionally you may want to Cleanup the MariaDB Chart