WordpPress Kubernetes .htaccess configuration
Introduction
This chart bootstraps a WordPress 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 WordPress 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
Disabling
.htaccessFor performance and security reasons, it is a good practice to configure Apache with
AllowOverride None. Instead of using.htaccessfiles, Apache will load the same dircetives at boot time. These directives are located in/opt/bitnami/wordpress/wordpress-htaccess.conf. The container image includes by default these directives all of the default.htaccessfiles in WordPress (together with the default plugins). To enable this feature, install the chart with the following value:helm install stable/wordpress --set allowOverrideNone=yesHowever, some plugins may include
.htaccessdirectives that will not be loaded whenAllowOverrideis set toNone. A way to make them work would be to create your ownwordpress-htaccess.conffile with all the required dircectives to make the plugin work. After creating it, then create a ConfigMap with it.kubectl create cm custom-htaccess --from-file=/path/to/wordpress-htaccess.confThen, install the chart:
helm install stable/wordpress --set allowOverrideNone=yes --set customHTAccessCM=custom-htaccessUpgrading