wordpress

by [riftbit]

Helm chartv12.1.16App 5.8.1Verified publisher

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

WordPress Image parameters

NameDescriptionValue
image.registryWordPress image registrydocker.io
image.repositoryWordPress image repositorybitnami/wordpress
image.tagWordPress image tag (immutable tags are recommended)5.8.1-debian-10-r14
image.pullPolicyWordPress image pull policyIfNotPresent
image.pullSecretsWordPress image pull secrets[]
image.debugEnable image debug modefalse

WordPress Configuration parameters

NameDescriptionValue
wordpressUsernameWordPress usernameuser
wordpressPasswordWordPress user password""
existingSecretName of existing secret containing WordPress credentials""
wordpressEmailWordPress user email[email protected]
wordpressFirstNameWordPress user first nameFirstName
wordpressLastNameWordPress user last nameLastName
wordpressBlogNameBlog nameUser's Blog!
wordpressTablePrefixPrefix to use for WordPress database tableswp_
wordpressSchemeScheme to use to generate WordPress URLshttp
wordpressSkipInstallSkip wizard installationfalse
wordpressExtraConfigContentAdd extra content to the default wp-config.php file""
wordpressConfigurationThe content for your custom wp-config.php file (advanced feature)""
existingWordPressConfigurationSecretThe name of an existing secret with your custom wp-config.php file (advanced feature)""
wordpressConfigureCacheEnable W3 Total Cache plugin and configure cache settingsfalse
wordpressAutoUpdateLevelLevel of auto-updates to allow. Allowed values: major, minor or none.none
wordpressPluginsArray of plugins to install and activate. Can be specified as all or none.none
apacheConfigurationThe content for your custom httpd.conf file (advanced feature)""
existingApacheConfigurationConfigMapThe name of an existing secret with your custom httpd.conf file (advanced feature)""
customPostInitScriptsCustom post-init.d user scripts{}
smtpHostSMTP server host""
smtpPortSMTP server port""
smtpUserSMTP username""
smtpPasswordSMTP user password""
smtpProtocolSMTP protocol""
smtpExistingSecretThe name of an existing secret with SMTP credentials""
allowEmptyPasswordAllow the container to be started with blank passwordstrue
allowOverrideNoneConfigure Apache to prohibit overriding directives with htaccess filesfalse
htaccessPersistenceEnabledPersist custom changes on htaccess filesfalse
customHTAccessCMThe name of an existing ConfigMap with custom htaccess rules""
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsArray with extra environment variables to add to the WordPress container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

WordPress Multisite Configuration parameters

NameDescriptionValue
multisite.enableWhether to enable WordPress Multisite configuration.false
multisite.hostWordPress Multisite hostname/address. This value is mandatory when enabling Multisite mode.""
multisite.networkTypeWordPress Multisite network type to enable. Allowed values: subfolder, subdirectory or subdomain.subdomain
multisite.enableNipIoRedirectWhether 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

NameDescriptionValue
replicaCountNumber of WordPress replicas to deploy1
updateStrategy.typeWordPress deployment strategy typeRollingUpdate
updateStrategy.rollingUpdateWordPress deployment rolling update configuration parameters{}
schedulerNameAlternate scheduler""
serviceAccountNameServiceAccount namedefault
hostAliasesWordPress pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for WordPress pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for WordPress container(s)[]
extraContainerPortsOptionally specify extra list of additional ports for WordPress container(s)[]
sidecarsAdd additional sidecar containers to the WordPress pod[]
initContainersAdd additional init containers to the WordPress pods[]
podLabelsExtra labels for WordPress pods{}
podAnnotationsAnnotations for WordPress pods{}
podAffinityPresetPod 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwordpress is pinned at v12.1.16 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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