wordpress
by [riftbit]
Web publishing platform for building blogs and websites.
About this chart
WordPress
WordPress is one of the most versatile open source content management systems on the market. A publishing platform for building blogs and websites.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/wordpress
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, and the Bitnami Memcached chart that can be used to cache database queries.
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.12+
- Helm 3.1.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/wordpress
The command deploys WordPress 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 | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
WordPress Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | WordPress image registry | docker.io |
image.repository | WordPress image repository | bitnami/wordpress |
image.tag | WordPress image tag (immutable tags are recommended) | 5.8.1-debian-10-r14 |
image.pullPolicy | WordPress image pull policy | IfNotPresent |
image.pullSecrets | WordPress image pull secrets | [] |
image.debug | Enable image debug mode | false |
WordPress Configuration parameters
| Name | Description | Value |
|---|---|---|
wordpressUsername | WordPress username | user |
wordpressPassword | WordPress user password | "" |
existingSecret | Name of existing secret containing WordPress credentials | "" |
wordpressEmail | WordPress user email | [email protected] |
wordpressFirstName | WordPress user first name | FirstName |
wordpressLastName | WordPress user last name | LastName |
wordpressBlogName | Blog name | User's Blog! |
wordpressTablePrefix | Prefix to use for WordPress database tables | wp_ |
wordpressScheme | Scheme to use to generate WordPress URLs | http |
wordpressSkipInstall | Skip wizard installation | false |
wordpressExtraConfigContent | Add extra content to the default wp-config.php file | "" |
wordpressConfiguration | The content for your custom wp-config.php file (advanced feature) | "" |
existingWordPressConfigurationSecret | The name of an existing secret with your custom wp-config.php file (advanced feature) | "" |
wordpressConfigureCache | Enable W3 Total Cache plugin and configure cache settings | false |
wordpressAutoUpdateLevel | Level of auto-updates to allow. Allowed values: major, minor or none. | none |
wordpressPlugins | Array of plugins to install and activate. Can be specified as all or none. | none |
apacheConfiguration | The content for your custom httpd.conf file (advanced feature) | "" |
existingApacheConfigurationConfigMap | The name of an existing secret with your custom httpd.conf file (advanced feature) | "" |
customPostInitScripts | Custom post-init.d user scripts | {} |
smtpHost | SMTP server host | "" |
smtpPort | SMTP server port | "" |
smtpUser | SMTP username | "" |
smtpPassword | SMTP user password | "" |
smtpProtocol | SMTP protocol | "" |
smtpExistingSecret | The name of an existing secret with SMTP credentials | "" |
allowEmptyPassword | Allow the container to be started with blank passwords | true |
allowOverrideNone | Configure Apache to prohibit overriding directives with htaccess files | false |
htaccessPersistenceEnabled | Persist custom changes on htaccess files | false |
customHTAccessCM | The name of an existing ConfigMap with custom htaccess rules | "" |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Array with extra environment variables to add to the WordPress container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
WordPress Multisite Configuration parameters
| Name | Description | Value |
|---|---|---|
multisite.enable | Whether to enable WordPress Multisite configuration. | false |
multisite.host | WordPress Multisite hostname/address. This value is mandatory when enabling Multisite mode. | "" |
multisite.networkType | WordPress Multisite network type to enable. Allowed values: subfolder, subdirectory or subdomain. | subdomain |
multisite.enableNipIoRedirect | Whether to enable IP address redirection to nip.io wildcard DNS. Useful when running on an IP address with subdomain network type. | false |
WordPress deployment parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of WordPress replicas to deploy | 1 |
updateStrategy.type | WordPress deployment strategy type | RollingUpdate |
updateStrategy.rollingUpdate | WordPress deployment rolling update configuration parameters | {} |
schedulerName | Alternate scheduler | "" |
serviceAccountName | ServiceAccount name | default |
hostAliases | WordPress pod host aliases | [] |
extraVolumes | Optionally specify extra list of additional volumes for WordPress pods | [] |
extraVolumeMounts | Optionally specify extra list of additional volumeMounts for WordPress container(s) | [] |
extraContainerPorts | Optionally specify extra list of additional ports for WordPress container(s) | [] |
sidecars | Add additional sidecar containers to the WordPress pod | [] |
initContainers | Add additional init containers to the WordPress pods | [] |
podLabels | Extra labels for WordPress pods | {} |
podAnnotations | Annotations for WordPress pods | {} |
podAffinityPreset | Pod affinity preset. |
Deploy wordpress with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wordpress 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 chartwordpress is pinned at v12.1.16 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